Spring集成云布里克斯顿。M1进入Spring Boot 1.2.6应用程序?

时间:2023-01-26 09:30:17

It seems that i am missing something in my current setup of my pom.xml. Currently i have a Spring Boot application configured with a starter.

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

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

Now that i want to integrate this application with Spring Cloud Brixton.M1. According to the documentation i need to add the follow block:

现在,我想将这个应用程序与Spring Cloud Brixton.M1集成。根据文档,我需要添加follow模块:

<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>

And add for example Spring Cloud Turbine AMQP. org.springframework.cloud spring-cloud-starter-turbine-amqp

再加上Spring Cloud涡轮AMQP。org.springframework。云spring-cloud-starter-turbine-amqp

I also annotated the Spring Boot start class with:

我还注释了Spring Boot start类:

@EnableTurbineAmqp

@EnableTurbineAmqp

But now when i start the application i get the following error message:

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

Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.core.ResolvableType.forInstance(Ljava/lang/Object;)Lorg/springframework/core/ResolvableType;

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

It seems that there are 2 versions of Spring Core on the classpath which have a conflict. Is there a prefered way of excluding one or they other?

似乎有两个版本的Spring核心在类路径上有冲突。是否有排除一个或另一个的优先方法?

1 个解决方案

#1


0  

Spring Cloud Brixton M1 requires Spring Boot 1.3.x

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

#1


0  

Spring Cloud Brixton M1 requires Spring Boot 1.3.x

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