Spring Integration的无版本模式指向旧版本的XSD

时间:2016-01-04 21:25:58

标签: xml spring xsd spring-integration

在这篇文章中(自2012年起),

Why does Spring Integration have several XML schemas, and which one should I use?

Gary R.写道,为春天整合"和" spring-integration-file":

  

互联网上的无版本架构是旧的1.0架构;我们需要   弄清楚我们如何改变它,但对于各种各样而言,它并不简单   原因,

我今天检查了它们,它们仍然指向1.0架构。

是否有任何计划将无版本架构指向最新(当前)4.2版本?或者我们是否继续使用这两个版本的架构?

1 个答案:

答案 0 :(得分:2)

我们添加了评论,说明为什么某些模块的互联网托管版本模式必须继续指向1.0模式版本。

http://www.springframework.org/schema/integration/spring-integration.xsd

<!--
   +++++ IMPORTANT +++++

 This schema is for the 1.0 version of Spring Integration Core. We cannot update it to the current schema
 because that will break any applications using 1.0.3 or lower. For subsequent versions, the unversioned
 schema is resolved from the classpath and obtained from the jar.
 Please refer to github:

 https://github.com/spring-projects/spring-integration/tree/master/spring-integration-core/src/main/resources/org/springframework/integration/config/xml

 for the latest schema. 
-->

Spring 在运行时使用互联网托管的模式。

您可以在应用程序中安全地使用无版本模式,并且将使用正确的模式。