inflearn logo
Khóa học

Khóa học

Chia sẻ kiến thức

Bài viết của kgh1986213527

kgh1986213527 kgh1986213527

@kgh1986213527

Số lượng đánh giá đã viết
-
Xếp hạng trung bình
-

Bài viết 1

Hỏi & Đáp

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

Lượt thích
18
Số bình luận
7
Lượt xem
10108