<dependency>
<groupId>org.springframework.hateoas</groupId>
<artifactId>spring-hateoas</artifactId>
<version>0.23.0.RELEASE</version>
</dependency>
我在pom.xml中添加了这个Spring hateoas依赖项,但我的项目的版本为0.25.1。我想要版本0.23.0。
用于检查您可以吃些什么'win'依赖项>]
mvn dependency:tree -Dincludes=org.springframework.hateoas:spring-hateoas::
我建议您阅读https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
关注<dependency-managment>
标签,它使您可以控制传递依赖关系(我认为这会导致您的问题)
请参见Differences between dependencyManagement and dependencies in Maven