Spring2.0配置文件加载util标签的Schema

Spring2.0的配置文件已经是基于XML Schema的了,如果我们需要使用2.0新增的util标签,则需要进行如下的schema配置

<?xml version="1.0" encoding="UTF-8"?><beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.springframework.org/schema/"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.0.xsd">
</beans>

注意红色部分

猜你喜欢

转载自lichunhui.iteye.com/blog/1246643
今日推荐