首页 文章

将Spring Cloud Brixton.M1集成到Spring Boot 1.2.6应用程序中?

提问于
浏览
0

似乎我在我当前的pom.xml设置中遗漏了一些东西 . 目前我有一个配置了启动器的Spring Boot应用程序 .

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.2.6.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

现在我想将此应用程序与Spring Cloud Brixton.M1集成 . 根据文档我需要添加以下块:

<repositories>
    <repository>
        <id>spring-milestones</id>
        <name>Spring Milestones</name>
        <url>http://repo.spring.io/milestone</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories> 
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-parent</artifactId>
            <version>Brixton.M1</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

并添加例如Spring Cloud Turbine AMQP . org.springframework.cloud spring-cloud-starter-turbine-amqp

我还注释了Spring Boot启动类:

@EnableTurbineAmqp

但是现在当我启动应用程序时,我收到以下错误消息:

线程“main”中的异常java.lang.NoSuchMethodError:org.springframework.core.ResolvableType.forInstance(Ljava / lang / Object;)Lorg / springframework / core / ResolvableType;

似乎在类路径上有两个版本的Spring Core存在冲突 . 是否有一种优先排除一种或另一种的方式?

1 回答

  • 0

    Spring Cloud Brixton M1需要Spring Boot 1.3.x.

相关问题