【问题标题】:Version-less schemas for Spring Integration points to an old version of the XSDSpring Integration 的无版本模式指向旧版本的 XSD
【发布时间】:2016-01-04 21:25:58
【问题描述】:

在这篇文章中(从 2012 年开始),

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

Gary R. 为“spring-integration”和“spring-integration-file”写道:

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

我今天检查了它们,它们仍然指向 1.0 模式。

是否有任何计划让无版本架构指向最新(当前)4.2 版本?还是我们继续为这两个使用版本化架构?

【问题讨论】:

    标签: xml spring xsd spring-integration


    【解决方案1】:

    我们添加了 cmets,说明为什么某些模块的互联网托管无版本架构必须继续指向 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 确实在运行时使用 Internet 托管的架构。

    您可以在应用程序中安全地使用无版本架构,并且会使用正确的架构。

    【讨论】:

      猜你喜欢
      • 2019-02-10
      • 1970-01-01
      • 1970-01-01
      • 2017-07-13
      • 1970-01-01
      • 1970-01-01
      • 2023-01-19
      • 1970-01-01
      • 2013-08-03
      相关资源
      最近更新 更多