inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

isdnhk님의 게시글

isdnhk isdnhk

@isdnhk2395

수강평 작성수
1
평균평점
5.0

게시글 1

질문&답변

주의! WebSecurityConfigurerAdapter deprecated

@Configuration @EnableWebSecurity //스프링 시큐리티 필터가 스프링 필터체인에 등록된다. public class SecurityConfig{ @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.csrf(CsrfConfigurer::disable); http.authorizeHttpRequests(authorize -> authorize .requestMatchers("/user/**").authenticated() .requestMatchers("/manager/**").hasAnyRole("ADMIN", "MANAGER") .requestMatchers("/admin/**").hasAnyRole("ADMIN") .anyRequest().permitAll() ); return http.build(); } } security 6.1입니다

좋아요수
15
댓글수
8
조회수
4625