Spring集成4.1-4.2迁移
我真的很努力地想让它工作,但是我没有主意…帮助任何人吗?看起来你的类路径中有多种版本 我猜画面是这样的:Spring集成4.1-4.2迁移,spring,spring-integration,Spring,Spring Integration,我真的很努力地想让它工作,但是我没有主意…帮助任何人吗?看起来你的类路径中有多种版本 我猜画面是这样的: 您有spring-integration-core-4.2.x 您的spring集成http、`spring集成xml、spring集成amqp或spring集成核心事件的其中一个版本是4.1.x` 当您升级到新版本时,应该同时对所有Spring集成模块执行此操作 实现这一点的最佳方法是使用一些依赖关系管理工具,如Maven或Gradle,当您可以在一个位置将有界工件的版本指定为一个变量时。
spring-integration-core-4.2.x
spring集成http
、`spring集成xml、
spring集成amqp或
spring集成核心事件的其中一个版本是
4.1.x`实现这一点的最佳方法是使用一些依赖关系管理工具,如Maven或Gradle,当您可以在一个位置将有界工件的版本指定为一个变量时。在升级过程中,您只需更改该变量即可。谢谢您的快速回答。我使用Maven,所有这些都有一个版本变量。我再次检查了项目中的Maven依赖项,所有JAR都是最新版本(4.2.4),除了SpringRabbit是1.5最新版本(我试图删除这一个,但问题仍然存在..并且无论如何都不应该制造问题),或者您有其他依赖项(例如SpringBootStarter),或者您的配置中有一些
,它为配置提供指向4.1
版本的XSD。
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-http="http://www.springframework.org/schema/integration/http"
xmlns:int-xml="http://www.springframework.org/schema/integration/xml"
xmlns:int-amqp="http://www.springframework.org/schema/integration/amqp"
xmlns:int-event="http://www.springframework.org/schema/integration/event"
xmlns:rabbit="http://www.springframework.org/schema/rabbit"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/integration/http http://www.springframework.org/schema/integration/http/spring-integration-http.xsd
http://www.springframework.org/schema/integration/xml http://www.springframework.org/schema/integration/xml/spring-integration-xml.xsd
http://www.springframework.org/schema/integration/amqp http://www.springframework.org/schema/integration/amqp/spring-integration-amqp.xsd
http://www.springframework.org/schema/integration/event http://www.springframework.org/schema/integration/event/spring-integration-event.xsd
http://www.springframework.org/schema/rabbit http://www.springframework.org/schema/rabbit/spring-rabbit.xsd">
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: You cannot use prior versions of Spring Integration schemas with Spring Integration 4.2. Please upgrade your schema declarations or use versionless aliases (e.g. spring-integration.xsd).
Offending resource: class path resource [com/improvedigital/yield360/services/status/ctx/application-config.xml]