https://github.com/f-lab-edu/make-delivery/commit/6ec3cd3ea4740dd4f6782910de0dd1e97dc11af2
[#11] 코드 리뷰 반영 : 세션유틸 클래스 추가와 LoginService 추가 · f-lab-edu/make-delivery@6ec3cd3
Show file tree Showing 6 changed files with 81 additions and 44 deletions.
github.com


UserMapper interface 정의 후 @Mapper 달고 UserMapper.xml 에서 쿼리 직접 작성.

서비스단에서 userMapper 의 인터페이스로 쿼리 접근 가능.
=====
https://github.com/f-lab-edu/make-delivery/pull/16/commits/ab3d2855dafa166cf30df3bbca711d2d9eaa39c0
[#15] SPRING AOP적용하여 로그인체크, 회원정보 수정,탈퇴 로직, Argument Resolver를 이용해 세션에 있는
This repository has been archived by the owner. It is now read-only. Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull re
github.com


컨트롤러에서 @CurrentUserId 붙이면 resolveArgument에서 반환 된 값이 파라미터인 String userId 에 주입된다.
=====

이거 더 공부하자. Enum


3개 사진 순서대로 어노테이션 선언, 어노테이션 AOP 선언, 어노테이션 사용.
=====
그냥 적음.
스프링부트의 자동설정이 되는 이유 : @SpringBootApplication 안에 @EnableAutoConfiguration 을 통해 해준다.

=====
[#7] 코드리뷰 반영 : ArgumentResolver를 적용하여 CurrentUserId 파라미터로 가져오기
Interceptor, Argumentresolver 는 다 만들고 webconfig 에 등록?


'Code Analysis > make-delivery' 카테고리의 다른 글
[#28] 장바구니에 메뉴 추가, 조회, 삭제 로직 (0) | 2022.09.07 |
---|---|
[#22] 메뉴 관련 비즈니스 로직 작성 : DTO , Controller, Service, Mapper ~ Store 관련 로직 작성 : DTO, Controller, Service, Mapper, AOP (0) | 2022.09.07 |