【发布时间】:2015-02-05 14:20:15
【问题描述】:
我注意到,即使未指定 xsi:schemaLocation,STS 也能成功验证 applicationContext.xml 文件。我还检查了 STS Preferences > XML Catalogs and spring xsd are not specified there
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xbean id="cross" class="mypackage.spring.Cross" scope="prototype">
</xbean>
</beans>
【问题讨论】:
-
问题是……?
-
如何验证xml?