inflearn logo
講義

講義

知識共有

kgh1986213527さんの投稿

kgh1986213527 kgh1986213527

@kgh1986213527

レビュー投稿数
-
平均評価
-

投稿 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 설정 부분에서 람다식을 이용하여 메소드 체이닝으로 좀 더 간결하게 작성 할 수 있습니다

いいね数
18
コメント数
7
閲覧数
10108