我想使用 here 中的解决方案,但为此我需要有一个 Spring JAR,它有 http://www.springframework.org/schema/util命名空间。
我搜索了很多但找不到具有此命名空间的 JAR 的名称,我什至下载了很多 Spring 支持 JAR 并检查了 .schemas 文件但没有找到。有人可以让我知道 JAR 名称吗
最佳答案
基本上从你的问题来看,你正在尝试使用 util 命名空间。要使用 util 模式中的标签,你需要在 Spring XML 配置文件的顶部有以下序言,以便 util 命名空间中的标签可供您使用。
jar 名称是 spring-beans-xxx.RELEASE.jar。
您需要在您的 xml 文件中提及它,如下所示:
<?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:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd">
</beans>
关于java - 这是 http ://www. springframework.org/schema/util 的 Spring JAR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51381511/