Conversation
| <groupId>org.webjars</groupId> | ||
| <artifactId>bootstrap</artifactId> | ||
| <version>3.3.7</version> | ||
| </dependency> |
There was a problem hiding this comment.
Trùng lib rồi em ơi
Line 54 có khai báo rồi kìa
| new FileOutputStream(serverFile)); | ||
| stream.write(bytes); | ||
| stream.close(); | ||
|
|
There was a problem hiding this comment.
Viết cái đoạn up file này vào 1 file util nha em
| new FileOutputStream(serverFile)); | ||
| stream.write(bytes); | ||
| stream.close(); | ||
|
|
There was a problem hiding this comment.
Tương tự comment trên, em cũng hãy đưa đoạn code này vào file util nha
| } | ||
|
|
||
| final String redirectUrl = "redirect:http://localhost/test.php"; | ||
| return redirectUrl; |
There was a problem hiding this comment.
final String redirectUrl = "redirect:http://localhost/test.php";
Có gì nhầm lẫn chỗ này ko em?
| Files.write(path, bytes); | ||
| itPost.setImage(file.getOriginalFilename()); | ||
| redirect.addFlashAttribute("message", | ||
| "You successfully uploaded '" + file.getOriginalFilename() + "'"); |
There was a problem hiding this comment.
"You successfully uploaded '"
multi language?
| <link href="../../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet"/> | ||
| </head> | ||
| <body> | ||
|
|
There was a problem hiding this comment.
check lại toàn bộ indent của jsp em ơi ;(
| $("input.upload-new-pic").change(function () { | ||
| readURL(this); | ||
| }); | ||
| //]]> |
There was a problem hiding this comment.
Không viết javascript trong này nha, tạo file riêng đi em
| '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i', | ||
| '//www.tinymce.com/css/codepen.min.css' | ||
| ] | ||
| });</script> |
|
|
||
| @Service | ||
| public class UserServiceImpl implements UserService { | ||
| @Autowired |
|
|
||
| @Bean | ||
| public JpaVendorAdapter jpaVendorAdapter() { | ||
| HibernateJpaVendorAdapter jpaVendorAdapter = new HibernateJpaVendorAdapter(); |
There was a problem hiding this comment.
Không dùng HibernateJpaVendorAdapter em ơi.
No description provided.