Q&A
Spring Boot 최신 3.XX 버전 Security 설정 공유드립니다.
부트 버전이 올라가서 코드가 또 수정된것 같네요 return http .csrf(AbstractHttpConfigurer::disable) .headers(headers -> headers.frameOptions(HeadersConfigurer.FrameOptionsConfig::sameOrigin)) .authorizeHttpRequests( authorize -> authorize .requestMatchers(WHITE_LIST).permitAll() .requestMatchers( PathRequest.toH2Console()).permitAll() ) .build();
- いいね数
- 18
- コメント数
- 7
- 閲覧数
- 10108

