2024/01
-
문제 1) access token을 발급 받아야하는데 계속 null값으로 나오는 문제를 발견 2) 설정한 로그인 페이지가 아닌 OAuth2 google 로그인 기본 페이지가 나오는 문제 발견 3) 1,2 문제를 해결 후 구글 로그인 성공 시 설정한 리다이렉션 경로대로 나오지 않는 문제 발견 해결과정 이상하다...? 토큰을 만들 때 제대로되고 있는데...? 뭐지...? 원인을 못 찾고 있었습니다... 다른 위치에서 소스를 수정해보고 디버그를 해보고했지만!! private String makeToken(Date expiry, User user) { // Date now = new Date(); // SecretKey key = Jwts.SIG.HS256.key().build(); // SecretKey ke..
스프링 시큐리티] 구글 로그인 적용하면서 생긴 문제점 해결 과정문제 1) access token을 발급 받아야하는데 계속 null값으로 나오는 문제를 발견 2) 설정한 로그인 페이지가 아닌 OAuth2 google 로그인 기본 페이지가 나오는 문제 발견 3) 1,2 문제를 해결 후 구글 로그인 성공 시 설정한 리다이렉션 경로대로 나오지 않는 문제 발견 해결과정 이상하다...? 토큰을 만들 때 제대로되고 있는데...? 뭐지...? 원인을 못 찾고 있었습니다... 다른 위치에서 소스를 수정해보고 디버그를 해보고했지만!! private String makeToken(Date expiry, User user) { // Date now = new Date(); // SecretKey key = Jwts.SIG.HS256.key().build(); // SecretKey ke..
2024.01.13 -
스프링 3.2.0 으로 프로젝트를 진행하는 중에 아래와 같은 메시지 트레킹이 계속 되고 있어서 궁금해서 찾아봤다. 에러 메시지 Cache miss for REQUEST dispatch to '/login' (previous null). Performing MatchableHandlerMapping lookup. This is logged once only at WARN level, and every time at TRACE. 원인 스프링 3.2.0 고질병 해결 스프링 3.2.1 이상으로 업그레이드 하면 사라짐 github 이슈 트레킹 Spring Boot 3.2.0 Cache miss for REQUEST dispatch to '/actuator/health/readiness' · Issue #38587..
스프링] Cache miss for REQUEST dispatch to '/' (previous null). Performing MatchableHandlerMapping lookup. This is logged once only at WARN level, and every time at TRACE.스프링 3.2.0 으로 프로젝트를 진행하는 중에 아래와 같은 메시지 트레킹이 계속 되고 있어서 궁금해서 찾아봤다. 에러 메시지 Cache miss for REQUEST dispatch to '/login' (previous null). Performing MatchableHandlerMapping lookup. This is logged once only at WARN level, and every time at TRACE. 원인 스프링 3.2.0 고질병 해결 스프링 3.2.1 이상으로 업그레이드 하면 사라짐 github 이슈 트레킹 Spring Boot 3.2.0 Cache miss for REQUEST dispatch to '/actuator/health/readiness' · Issue #38587..
2024.01.13 -
스프링시큐리티를 적용하는 중에 아래와 같은 에러가 발생했다. 에러 메시지 *************************** APPLICATION FAILED TO START *************************** Description: The dependencies of some of the beans in the application context form a cycle: ┌─────┐ | webSecurityConfig defined in file [/Users/june/Repository/june/out/production/classes/toyblog/june/springbootdev/config/WebSecurityConfig.class] ↑ ↓ | userService defined ..
스프링시큐리티] 순환 참조 에러스프링시큐리티를 적용하는 중에 아래와 같은 에러가 발생했다. 에러 메시지 *************************** APPLICATION FAILED TO START *************************** Description: The dependencies of some of the beans in the application context form a cycle: ┌─────┐ | webSecurityConfig defined in file [/Users/june/Repository/june/out/production/classes/toyblog/june/springbootdev/config/WebSecurityConfig.class] ↑ ↓ | userService defined ..
2024.01.12 -
OAuth2를 적용하는 중에 인텔리제이에서 deprecated 됐다는 경고가 떠서 급하게 코드를 수정해보았습니다 동작은 동일한 코드지만 문법에서 차이가 있지만 크게 변화된건 없으니 쉽게 변경할 수 있었습니다! 코드 변경 전 public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.csrf().disable() .httpBasic().disable() .formLogin().disable() .logout().disable(); http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS); http.addFilterBefore(token..
스프링시큐리티] http deprecated 리팩토링OAuth2를 적용하는 중에 인텔리제이에서 deprecated 됐다는 경고가 떠서 급하게 코드를 수정해보았습니다 동작은 동일한 코드지만 문법에서 차이가 있지만 크게 변화된건 없으니 쉽게 변경할 수 있었습니다! 코드 변경 전 public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.csrf().disable() .httpBasic().disable() .formLogin().disable() .logout().disable(); http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS); http.addFilterBefore(token..
2024.01.12