@Configuration(value="com.mbap.auth.config.ResourceServerConfig")
@EnableResourceServer
public class ResourceServerConfig
extends org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter
| Constructor and Description |
|---|
ResourceServerConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
资源访问规则配置
默认 “/oauth/**”之外的所有资源都是受保护的
|
void |
configure(org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer resources)
资源配置
|
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws java.lang.Exception
configure in interface org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerconfigure in class org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapterjava.lang.Exceptionpublic void configure(org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer resources)
throws java.lang.Exception
configure in interface org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerconfigure in class org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapterjava.lang.Exception