Spring boot Spring Boot与Spring HATEOAS Maven冲突

Spring boot Spring Boot与Spring HATEOAS Maven冲突,spring-boot,spring-hateoas,Spring Boot,Spring Hateoas,当我为spring hateoas添加依赖项时 <groupId>org.springframework.hateoas</groupId> <artifactId>spring-hateoas</artifactId> <version>0.13.0.RELEASE</version> 我试图排除spring hateoas的各种依赖项,但该应用程序不再运行 有没有人有幸在spring boot中运行sp

当我为spring hateoas添加依赖项时

<groupId>org.springframework.hateoas</groupId>
    <artifactId>spring-hateoas</artifactId>
    <version>0.13.0.RELEASE</version>
我试图排除spring hateoas的各种依赖项,但该应用程序不再运行


有没有人有幸在spring boot中运行spring hateoas。

绝对没有问题。
@RestController
注释仍然可用,您不需要进行任何排除

如果有帮助,我目前正在使用Spring Boot的1.0.2版:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.0.2.RELEASE</version>
</parent>
在我的
pom.xml
中,我没有为
spring-hateoas
定义一个显式版本,但我的构建是
0.9.0。发行版

<dependency>
    <groupId>org.springframework.hateoas</groupId>
    <artifactId>spring-hateoas</artifactId>
</dependency>

org.springframework.hateoas
春风
另外,我可以从EclipsePOM编辑器中看到,SpringHateoas正在定义Spring3.2.7上的依赖项。但是,
springbootstarter父项
项目管理4.0.3之前的版本。你能看到你得到的是什么版本的Spring吗?您可能没有将
spring启动父项
用作父项目吗

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.hateoas</groupId>
    <artifactId>spring-hateoas</artifactId>
</dependency>