spring boot 2.0.3缺少Spring security oauth2’indedencies.dependency.version’
作者:互联网
我尝试添加spring security的依赖性.
这是我的pom.xml
<properties>
<spring-boot.version>2.0.3.RELEASE</spring-boot.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
...
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
</dependency>
...
<dependencies>
我尝试使用artifactId spring-security-oauth2,它说:
org.springframework.security.oauth的’dependencies.dependency.version’:spring-security-oauth2:jar丢失了
但是春天1.4.2.RELEASE,它的工作原理.
springboot 2.0.3.RELEASE的新spring security oauth2 maven repo是什么? (没有元素)
谢谢
解决方法:
错误,说您尚未为spring-security-oauth2定义版本
您可以使用2.3.3版本
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
<version>2.3.3.RELEASE</version>
</dependency>
标签:spring,spring-boot,maven-3 来源: https://codeday.me/bug/20190823/1697340.html