티스토리 뷰

Dev/Spring

[Spring Security] Config Refactoring

마이스토리 2023. 3. 2. 10:32

Spring Securty 5.7.x 부터 deprecated 된 WebSecurityConfigureAdapter 의 대체 방법 및 람다식 적용, ignore 적용에 관련된 좋은 내용이 있어서 링크함.

 

https://velog.io/@csh0034/Spring-Security-Config-Refactoring

 

[Spring Security] Config Refactoring

WebSecurityConfigurerAdapter Deprecated, Lambda DSL 적용, Resource Filter Chain 설정

velog.io

 

authorizeRequests() 를 대체하는 authorizeHttpRequests() 에 대한 내용

https://docs.spring.io/spring-security/reference/servlet/authorization/authorize-http-requests.html

 

Authorize HttpServletRequests with AuthorizationFilter :: Spring Security

The RequestMatcher interface is used to determine if a request matches a given rule. We use securityMatchers to determine if a given HttpSecurity should be applied to a given request. The same way, we can use requestMatchers to determine the authorization

docs.spring.io

 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31