[英]Spring Integration 4.1-4.2 migration
<?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]
我真的很努力地使這項工作可行,但是我沒有主意...可以幫助任何人嗎?
看起來您的類路徑中混合了多個版本。
我猜圖片是這樣的:
spring-integration-core-4.2.x
spring-integration-http
,spring-integration-xml ,
spring-integration-amqp or
spring-integration-core-event is of version
4.1.x`。 升級到新版本時,應該同時對所有Spring Integration模塊執行此操作。
實現此目標的最佳方法是使用Maven或Gradle之類的依賴管理工具,當您可以將有界工件的版本指定為一個位置的一個變量時。 在升級過程中,您只需更改該變量即可。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.