【发布时间】: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 吗?
【问题讨论】:
-
我会停止使用 XML。如果真的不可能,我会做文档所做的事情:docs.spring.io/spring/docs/5.0.9.RELEASE/…