Springboot/Security

Springboot Security 2.7. + 버전 WebSecurityConfigurerAdapter

디비드킴 2022. 7. 7. 10:19

최근 새프로제그를 만들고
WebSecurityConfigurerAdapter가 디클라인이 된걸 확인 하였다

https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter

Spring Security without the WebSecurityConfigurerAdapter

<p>In Spring Security 5.7.0-M2 we <a href="https://github.com/spring-projects/spring-security/issues/10822">deprecated</a> the <code>WebSecurityConfigurerAdapter</code>, as we encourage users to move towards a component-based security configuration.</p> <p

spring.io

글을 참고해서 만들었다
별 다른건 없다

void->SecurityFilterChain 리턴해주는 bean을 등록하면된다