Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- sapfiorielements
- Git
- Java
- MySQL
- VSCode
- useEffect
- LOG4J
- springboot
- Windows
- mybatis
- dbeaver
- docker
- Kubernetes
- react
- nginx
- JPA
- maven
- BPMN
- gradle
- Spring
- Linux
- database
- JavaScript
- tibero
- IntelliJ
- gson
- log4j2
- intellijIDEA
- NCP
- nodejs
Archives
- Today
- Total
두 손끝의 창조자
[Spring-Security]WebSecurity 본문
org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration은 WebSecurity를 사용하여 Spring Security에 대한 웹 기반 보안을 수행하고 Spring Security Filter Chain이라고 부르는 FilterChainProxy를 만든다. 그런 다음 필요한 Bean을 내 보냅니다. WebSecurityConfigurerAdapter를 확장하여 구성으로 노출하거나 WebSecurityConfigurer를 구현하고이를 구성으로 노출하여 WebSecurity를 사용자 정의 할 수 있습니다. EnableWebSecurity를 사용할 때이 구성을 가져옵니다.
springSecurityFilterChain은 DelegatingFilterProxy가 위임하는 필터이다.
WebSecurity에 대한 사용자 정의는 WebSecurityConfigurer를 작성하거나 WebSecurityConfigurerAdapter를 대체하여 가능할 수 있다.
WebSecurityConfigurer는 WebSecurity를 사용자 정의 할 수 있습니다. 대부분의 경우 EnableWebSecurity Annotation으로 자동으로 생선된 WebSecurity에 WebSecurityConfigurerAdapter를 이용해서 확장하는 방법을 쓴다.
@Configuration
@EnableWebSecurity
public class MyWebSecurityConfiguration extends WebSecurityConfigurerAdapter {
}
반응형
Comments