【问题标题】:Upgrading spring to 5.0.9将 spring 升级到 5.0.9
【发布时间】:2018-09-15 04:12:38
【问题描述】:

我正在尝试将 Spring 从版本 4.3.14 升级到 5.0.9。这是我的 bean 规范的样子:

    <beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:jaxrs="http://cxf.apache.org/jaxrs"
   xmlns:context="http://www.springframework.org/schema/context"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
      http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd">

我在http://www.springframework.org/schema/context 没有看到 Spring 5 的 XML 模式定义文件,例如“spring-context-5.0.xsd”。无版本模式是 Spring 5 的唯一途径吗?或者我可以继续使用 4.3 版本的 xsd 吗?

【问题讨论】:

标签: spring maven


【解决方案1】:

您可以使用没有版本号的架构。 [https://www.springframework.org/beans/spring-beans.xsd] 目前,它指的是 4.3,但另一个链接表明使用“无版本”架构,它将更新到最新版本。

有关详细信息,请参阅以下内容: https://jira.spring.io/browse/SPR-13499

【讨论】:

    猜你喜欢
    • 2022-01-18
    • 2021-04-28
    • 2020-04-29
    • 2021-03-08
    • 1970-01-01
    • 2017-11-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多