【发布时间】:2013-07-22 18:26:39
【问题描述】:
这是我的 spring-security.xml 文件
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="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-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd">
所以最后一行指定了 3.0 版本,这是一个有效的 xsd 文件,如果您访问它会显示架构的 URL。如果我在那个 xsd 上使用 COMMAND + B,它会将我带到 2.0 版本。
我知道我的计算机上存在一个 3.0.8 spring-security xsd 文件,intelliJ 就是不会使用它(即使它下载了它!)。
如何手动将此 xsd 文件放入我的项目中?
【问题讨论】:
-
也许您的类路径中有旧版本的 Spring Security?在 URL 上使用 Ctrl + 鼠标悬停,IntelliJ 将显示它在文件系统中找到 XSD 的位置。
-
感谢这解决了我的问题。
标签: spring intellij-idea xsd