@ConditionalOnClass(value=org.springframework.security.oauth2.common.exceptions.OAuth2Exception.class)
@Configuration
@ConditionalOnWebApplication
public class SecurityResourceServerConfiguration
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
class |
SecurityResourceServerConfiguration.ResourceServerConfiguration |
| 限定符和类型 | 字段和说明 |
|---|---|
org.springframework.context.MessageSource |
messageSource |
| 构造器和说明 |
|---|
SecurityResourceServerConfiguration(org.springframework.context.MessageSource messageSource) |
| 限定符和类型 | 方法和说明 |
|---|---|
SecurityOAuth2ErrorHandler |
securityErrorHandler() |
org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> |
webResponseExceptionTranslator() |
public SecurityResourceServerConfiguration(org.springframework.context.MessageSource messageSource)
@Bean public SecurityOAuth2ErrorHandler securityErrorHandler()
@Bean public org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> webResponseExceptionTranslator()