반응형
springboot3
-
[Spring Boot] Spring Security 6에서 permitAll 경로 설정하기Spring Boot/기타 2025. 6. 5. 22:17
목차 Spring Boot 3.x 이상을 사용하면, Spring Security 역시 자동으로 6.x 버전을 적용하게 됩니다.하지만 Spring Security 6부터는 구조적으로 많은 변화가 있었고, 그중에서도 특히 permitAll() 경로 설정 방식이 가장 혼란스럽게 느껴질 수 있습니다. 특히 아래 항목들이 deprecated되거나 제거되면서, 기존 방식과의 호환성이 완전히 무너졌습니다. 주요 변화 요약WebSecurityConfigurerAdapter 완전 제거antMatchers(...) deprecatedauthorizeRequests(...)가 authorizeHttpRequests(...)로 변경AntPathRequestMatcher 직접 생성 방식도 deprecated 람다 기반 DSL ..