Skip to content
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

[기능] ArgumentResolver 등록 #43

Closed
Hyeon-Uk opened this issue Aug 13, 2024 · 1 comment · Fixed by #15
Closed

[기능] ArgumentResolver 등록 #43

Hyeon-Uk opened this issue Aug 13, 2024 · 1 comment · Fixed by #15
Assignees
Labels
✨ Feature 기능 개발

Comments

@Hyeon-Uk
Copy link
Contributor

Hyeon-Uk commented Aug 13, 2024

기능

#21 에서 생성한 SessionArgumentResolver를 ArgumentResolvers에 등록합니다.

설명

#21 에서 구현한 SessionCustomerArgumentResolverSessionVendorArgumentResolver가 현재 등록되지 않아서 SessionAttribute를 @AuthenticationPrincipal 로 받아올 수 없습니다.

#3 에서 세션을 처리하는 테스트를 진행하기 위해서는 argumentResolver가 등록되어야합니다.

따라서 WebMvcConfig파일을 생성하여 생성한 argumentResolver를 등록할 것 입니다.

기대 효과

@AuthenticationPrincipal를 이용해서 Controller에서 쉽게 Session에 저장된 인증 객체를 받아올 수 있다.

@Hyeon-Uk Hyeon-Uk added the ✨ Feature 기능 개발 label Aug 13, 2024
@Hyeon-Uk Hyeon-Uk added this to the 프로토타입 만들기 milestone Aug 13, 2024
@Hyeon-Uk Hyeon-Uk self-assigned this Aug 13, 2024
This was linked to pull requests Aug 13, 2024
@Hyeon-Uk
Copy link
Contributor Author

#3281f6b2 커밋에서 해결했습니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발
Projects
Status: Done
1 participant