Hỏi & Đáp
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();
- Lượt thích
- 18
- Số bình luận
- 7
- Lượt xem
- 10108

