inflearn logo
Course

Course

Instructor

kgh1986213527's Posts

kgh1986213527 kgh1986213527

@kgh1986213527

Reviews Written
-
Average Rating
-

Posts 1

Q&A

Spring Boot 최신 3.XX 버전 Security 설정 공유드립니다.

@Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { return http.csrf().disable() .headers(authorize -> authorize .frameOptions().disable()) .authorizeHttpRequests(authorize -> authorize .requestMatchers(WHITE_LIST).permitAll() .requestMatchers(PathRequest.toH2Console()).permitAll()) .getOrBuild(); } 추가적으로 security 설정 부분에서 람다식을 이용하여 메소드 체이닝으로 좀 더 간결하게 작성 할 수 있습니다

Likes
18
Comments
7
Viewcount
10108