Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
back-end:spring:security [2021/04/29 16:02] – [WebSecurityConfigurerAdapter] 작성 ledyxback-end:spring:security [2021/04/29 16:23] (current) – [WebSecurityConfigurerAdapter] configure() 설명 추가 ledyx
Line 88: Line 88:
 전역적인(globally) authentication이 필요할 때 사용. 전역적인(globally) authentication이 필요할 때 사용.
  
-[[https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.html|WebSecurityConfigurerAdapter]]를 상속해서 사용한다.+[[https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.html|WebSecurityConfigurerAdapter]]를 상속해서 사용한다. 여기서 주의깊게 봐야 하는 Method는 "configure"인데, 3개의 종류를 가진다.
  
 +  * **protected void configure(AuthenticationManagerBuilder auth)**
 +    * Used by the default implementation of authenticationManager() to attempt to obtain an AuthenticationManager.
 +  * **protected void configure(HttpSecurity http)**
 +    * Override this method to configure the HttpSecurity.
 +  * **void configure(WebSecurity web)**
 +    * Override this method to configure WebSecurity.
  
 {{:back-end:spring:websecurityconfigurer.png}} {{:back-end:spring:websecurityconfigurer.png}}
back-end/spring/security.1619708564.txt.gz · Last modified: 2021/04/29 16:02 by ledyx