spring-security-oauth2-autoconfigure-2.1.3.RELEASE.jar旨在与Spring Boot
2.1.x一起使用。您正在使用1.5.9。
Spring Boot 1.5.x拥有自己的OAuth 2自动配置支持。在Spring Boot 2.0中已将其删除,并移至单独的
spring-security-oauth2-autoconfigure模块以简化向Spring Security 5中引入的OAuth支持的迁移,并将在其5.x版本。
您应该坚持使用Spring Boot 1.5.x并删除
spring-security-oauth2-autoconfigure对它的依赖关系,或者应该升级到Spring Boot2.1.x。



