분류 전체보기

· Spring
모놀리식 구조의 서비스를 MSA로 전환하는 프로젝트를 진행하면서 로그인되어 있는 회원의 정보를 인식할 수 없는 상황이 발생했다. 기존 로그인 회원 정보 조회 코드@Slf4jpublic class SecurityUtil { private SecurityUtil() { } // SecurityContext 에 유저 정보가 저장되는 시점 // Request 가 들어올 때 JwtFilter 의 doFilter 에서 저장 public static Long getCurrentMemberId() throws NumberFormatException{ final Authentication authentication = SecurityContextHolder.getContext().get..
· Spring
DispatcherServlet? Spring 공식문서에 따르면 DispatcherServlet 정의는 다음과 같다. Spring MVC, as many other web frameworks, is designed around the front controller pattern where a central Servlet, the DispatcherServlet, provides a shared algorithm for request processing, while actual work is performed by configurable delegate components. This model is flexible and supports diverse workflows. The DispatcherServl..
horing
'분류 전체보기' 카테고리의 글 목록 (2 Page)