![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb4cyuY%2FbtsufmNt1Nk%2FaCgp0lsmQy8TIdZAo9ASO1%2Fimg.png)
모놀리식 구조의 서비스를 MSA로 전환하는 프로젝트를 진행하면서 로그인되어 있는 회원의 정보를 인식할 수 없는 상황이 발생했다. 기존 로그인 회원 정보 조회 코드@Slf4jpublic class SecurityUtil { private SecurityUtil() { } // SecurityContext 에 유저 정보가 저장되는 시점 // Request 가 들어올 때 JwtFilter 의 doFilter 에서 저장 public static Long getCurrentMemberId() throws NumberFormatException{ final Authentication authentication = SecurityContextHolder.getContext().get..