Skip to content

Conversation

@stableh
Copy link

@stableh stableh commented Jul 9, 2024

안녕하세요! 리뷰어님.
미션 자체는 저번보다 괜찮았지만, 7단계 분리하는 부분에서 제가 잘 분리한게 맞는지.. 하는 의심이 듭니다.
이 부분에 관해서 의견 주시면 감사할 것 같습니다!

7, 8단계

public JwtUtil jwtUtil() {
return new JwtUtil(secret, expiration);
}
} No newline at end of file
Copy link

Choose a reason for hiding this comment

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

저도 이거를 고민했는데 roomescape내의 패키지로 auth를 만들 경우, 이게 맞는데 미션에서 동등한 계층이라는 말이 있어서 저는 java밑의 계층의 패키지로 만들어주었습니다. 그럴 경우 @import를 사용해서 외부 컴포넌트 스캔 범위를 벗어나는 경우를 스캔 할 수 있더라구요!

registry.addInterceptor(adminInterceptor)
.addPathPatterns("/admin/**");
}
}
Copy link

Choose a reason for hiding this comment

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

interceptor와 argumentResolver의 역할이 맥락적으로 같다고 생각해서 같은 config안에 등록해주는 건 어떨까요?

reservationRepository.save(new Reservation(admin.getId(), "2024-03-01", theme3.getId(), time3.getId()));
reservationRepository.save(new Reservation(brown.getId(), "2024-03-01", theme2.getId(), time1.getId()));
}
}
Copy link

Choose a reason for hiding this comment

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

잘하신 것 같아여! 😃

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