spring-security-oauth2-autoconfigure引入不生效报红的问题

时间:2025-04-02 12:30:52
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="/POM/4.0.0" xmlns:xsi="http:///2001/XMLSchema-instance" xsi:schemaLocation="/POM/4.0.0 /xsd/maven-4.0."> <modelVersion>4.0.0</modelVersion> <parent> <!--<groupId></groupId>--> <!--<artifactId>spring-boot-starter-parent</artifactId>--> <!--<version>2.4.1</version>--> <!--<relativePath/> &lt;!&ndash; lookup parent from repository &ndash;&gt;--> <groupId></groupId> <artifactId>t_qiangqiang_crm</artifactId> <version>0.0.1-SNAPSHOT</version> </parent> <artifactId>distributed_security_uaa</artifactId> <version>0.0.1-SNAPSHOT</version> <name>distributed_security_uaa</name> <description>Demo project for Spring Boot</description> <properties> <>1.8</> </properties> <dependencies> <!-- /artifact//mybatis-spring-boot-starter --> <dependency> <groupId></groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.1.3</version> </dependency> <dependency> <groupId></groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> </dependency> <dependency> <groupId></groupId> <artifactId>spring-cloud-starter-netflix-ribbon</artifactId> </dependency> <dependency> <groupId></groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dependency> <dependency> <groupId></groupId> <artifactId>hystrix-javanica</artifactId> </dependency> <dependency> <groupId></groupId> <artifactId>spring-retry</artifactId> </dependency> <dependency> <groupId></groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <dependency> <groupId></groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <!-- 排除自带的logback依赖 --> <exclusion> <groupId></groupId> <artifactId>spring-boot-starter-logging</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId></groupId> <artifactId>spring-boot-starter-freemarker</artifactId> </dependency> <dependency> <groupId></groupId> <artifactId>spring-data-commons</artifactId> </dependency> <dependency> <groupId></groupId> <artifactId>spring-cloud-starter-security</artifactId> </dependency> <dependency> <groupId></groupId> <artifactId>spring-cloud-starter-oauth2</artifactId> <!--<exclusions>--> <!--<exclusion>--> <!--<groupId></groupId>--> <!--<artifactId>spring-security-oauth2-autoconfigure</artifactId>--> <!--</exclusion>--> <!--</exclusions>--> </dependency> <dependency> <groupId></groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId></groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId></groupId> <artifactId>-api</artifactId> <version>3.1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId></groupId> <artifactId>-api</artifactId> <version>1.2</version> </dependency> <dependency> <groupId></groupId> <artifactId>fastjson</artifactId> <version>1.2.47</version> </dependency> <dependency> <groupId></groupId> <artifactId>lombok</artifactId> <version>1.18.0</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.47</version> </dependency> <dependency> <groupId></groupId> <artifactId>spring-security-jwt</artifactId> <version>1.0.</version> </dependency> <dependency> <groupId></groupId> <artifactId>spring-security-oauth2-autoconfigure</artifactId> <version>2.1.</version> </dependency> </dependencies> </project>