【发布时间】:2013-04-26 12:11:08
【问题描述】:
Spring Tool Suite (3.1.0)/Eclipse 正在加载错误版本的 Spring Beans XSD,导致 XML 验证错误。我在类路径上有spring-beans 3.2.2.RELEASE 作为Maven 依赖项,因此<beans> 元素的profile 属性应该是允许的。遗憾的是,这标记为错误。
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance""
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<beans profile="!cloud">
[...]
以下在我的 XML 目录设置中,并建议将分辨率设置为 Spring Beans 版本 3.1.4。我不确定如何使用来自 Maven 的依赖项来覆盖它(可能随时更改)。
【问题讨论】:
标签: xml eclipse spring xsd sts-springsourcetoolsuite