config
-
Spring Boot : SecurityConfig.java 정리Spring Boot 🍃 2023. 12. 17. 00:01
Spring Boot 2.7 ~ 3.1 동작 확인 debug 설정 + Basic 인증 사용 + h2 web console = true 설정한 경우 @EnableWebSecurity(debug = true) @Configuration public class SecurityConfig { @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http, HandlerMappingIntrospector introspector) throws Exception { MvcRequestMatcher.Builder mvcMatcher = new MvcRequestMatcher.Builder(introspector); http.authorizeHttpRequ..