解决方法:在spring配置文件中添加:xmlns:util="http://www.springframework.org/schema/util"
如下图:
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:beans="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
xmlns:beans="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
</beans>
本文介绍了解决Spring配置文件中引入util命名空间的方法。通过添加正确的xmlns:util声明,可以实现利用Spring提供的工具类进行配置的目的。
1199

被折叠的 条评论
为什么被折叠?



