-
Notifications
You must be signed in to change notification settings - Fork 1
10주차과제_정 #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
10주차과제_정 #14
The head ref may contain hidden characters: "\uC815/\uAE40\uC138\uC815"
Conversation
| private final PasswordEncoder passwordEncoder; | ||
|
|
||
| @PostMapping("/signup") | ||
| public String signup( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
지금 방식은 post 요청에서 모든 파라미터를 쿼리 파라미터로 받는 방식을 사용하고 계십니다.
비밀번호나 이메일 등이 쿼리 파라미터로 넘어오고 있기 때문에,
Requestbody 형식으로 dto를 사용해서 받는 방식이 더 좋을 것 같습니다.
| public class QuerydslConfig { | ||
|
|
||
| @Bean | ||
| public JPAQueryFactory jpaQueryFactory(EntityManager entityManager) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
중복되는 EntityManager를 빈으로 등록해서, 싱글톤으로 관리하는 방식 좋습니다!
Ochangmin524
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
깔끔한 코드 인상깊었습니다
전체적으로 깔끔하게 잘 작성해주셨습니다!
정말 수고하셨습니다!
|
|
||
| jwt: | ||
| token: | ||
| secretKey: umc-9th-springboot-jwt-secret-key-256bit-over |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jwt 시크릿 키는 공유되어서는 안되기 때문에, 깃에 공유되어서는 안됩니다.
깃 시크릿이나 .env 로 관리하는 방법 추천드립니다.
추후 현재 키값은 수정해주시면 감사하겠습니다
10주차 과제입니다.