spring security 6 (spring boot 3) 사용시 이전버전과 달라진 점 1. mvcMatchers deprecated - 대신 requestMatchers를 사용 2. @Configuration 추가해야함 - 기존에는 @EnableWebSecurity 내부에 @Configuration이 있었으나 6버전부터 제거되어서 sequrity config class에 아래와 같이 추가해야한다. @Configuration @EnableWebSecurity class SecurityConfig { } 3. .access() 사용방법 변경 기존 .antMatchers("/admin").access("hasRole('ADMIN') or hasRole('SYS')") 변경 .requestMatchers("..