Skip to content

first commit#7

Open
QMDAKA wants to merge 1 commit intoframgia:masterfrom
QMDAKA:develop-springmvc
Open

first commit#7
QMDAKA wants to merge 1 commit intoframgia:masterfrom
QMDAKA:develop-springmvc

Conversation

@QMDAKA
Copy link
Copy Markdown

@QMDAKA QMDAKA commented Aug 4, 2017

No description provided.

<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>3.3.7</version>
</dependency>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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() + "'");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"You successfully uploaded '"
multi language?

<link href="../../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet"/>
</head>
<body>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check lại toàn bộ indent của jsp em ơi ;(

$("input.upload-new-pic").change(function () {
readURL(this);
});
//]]>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Không viết js trong này


@Service
public class UserServiceImpl implements UserService {
@Autowired
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lỗi indent


@Bean
public JpaVendorAdapter jpaVendorAdapter() {
HibernateJpaVendorAdapter jpaVendorAdapter = new HibernateJpaVendorAdapter();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Không dùng HibernateJpaVendorAdapter em ơi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants