Package kr.com.inspect.config
Class SecurityConfig
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- kr.com.inspect.config.SecurityConfig
-
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>,org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
@Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(securedEnabled=true) @ComponentScan(basePackages="kr.com.inspect") public class SecurityConfig extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter기본적인 웹 인증에 대한 부분을 구현- Version:
- 1.0, 2020.11.24 403 에러 핸들링 추가(Yeonhee Kim)
- Author:
- Yeonhee Kim
-
-
Constructor Summary
Constructors Constructor Description SecurityConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(org.springframework.security.config.annotation.web.builders.WebSecurity web)특정 url로 접속할 때 인증/인가 처리를 무시org.springframework.security.web.authentication.rememberme.PersistentTokenRepositorypersistentTokenRepository()자동 로그인을 위한 DataSource 설정을 위해 PersistentTokenRepository를 Bean에 등록하고 리턴함-
Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManagerBean, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsServiceBean
-
-
-
-
Method Detail
-
configure
public void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) throws java.lang.Exception특정 url로 접속할 때 인증/인가 처리를 무시- Specified by:
configurein interfaceorg.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>- Overrides:
configurein classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter- Parameters:
web- WebSecurity 객체- Throws:
java.lang.Exception- 예외
-
persistentTokenRepository
@Bean public org.springframework.security.web.authentication.rememberme.PersistentTokenRepository persistentTokenRepository()
자동 로그인을 위한 DataSource 설정을 위해 PersistentTokenRepository를 Bean에 등록하고 리턴함- Returns:
- PersistentTokenRepository
-
-