Skip to content

Conversation

@sejeong223
Copy link
Collaborator

@sejeong223 sejeong223 commented Dec 21, 2025

10주차 과제입니다.

private final PasswordEncoder passwordEncoder;

@PostMapping("/signup")
public String signup(
Copy link
Collaborator

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) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

중복되는 EntityManager를 빈으로 등록해서, 싱글톤으로 관리하는 방식 좋습니다!

Copy link
Collaborator

@Ochangmin524 Ochangmin524 left a 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
Copy link
Collaborator

Choose a reason for hiding this comment

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

jwt 시크릿 키는 공유되어서는 안되기 때문에, 깃에 공유되어서는 안됩니다.
깃 시크릿이나 .env 로 관리하는 방법 추천드립니다.
추후 현재 키값은 수정해주시면 감사하겠습니다

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.

3 participants