<?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]
我正在努力做到这一点,但我没有想法......帮助任何人?
答案 0 :(得分:0)
您的类路径中看起来有多种版本。
我想这张照片就像:
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),此时可以将有界工件的版本指定为一个位置的一个变量。在升级过程中,您只需更改该变量即可。