spring boot oauth2 取消认证
作者:互联网
最近有一个项目需要从微服务中抽离,但是因为调用的包里关联了认证所以就算抽离处理还是会进oauth2默认的登入页面:
@SpringBootApplication(exclude = {EurekaClientAutoConfiguration.class, SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class}) 将SecurityAutoConfiguration和ManagementWebSecurityAutoConfiguration两个排除则过滤了oauth2的认证配置,这里还过滤了注册中心EurekaClientAutoConfiguration
标签:ManagementWebSecurityAutoConfiguration,oauth2,spring,boot,抽离,认证,EurekaClientAuto 来源: https://blog.51cto.com/u_14612575/2740359