본문 바로가기
프로젝트

My Record - 토큰 만료 시 401 처리

by ernest45 2025. 4. 8.
http.exceptionHandling()
        .defaultAuthenticationEntryPointFor(new HttpStatusEntryPoint(HttpStatus.UNAUTHORIZED),
                new AntPathRequestMatcher("/api/**"));