Spring 为什么intelliJ没有使用正确版本的.xsd文件
这是我的spring-security.xml文件Spring 为什么intelliJ没有使用正确版本的.xsd文件,spring,intellij-idea,xsd,Spring,Intellij Idea,Xsd,这是我的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" xs
<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版本,如果您转到它将显示模式的URL,这是一个有效的xsd文件。如果我在那个xsd上命令+B,它会把我带到2.0版本
我知道我的计算机上存在一个3.0.8SpringSecurityXSD文件,intelliJ就是不使用它(即使它下载了!)
如何在项目中手动放置此xsd文件 我也遇到了同样的问题,我通过从应用程序中删除spring-dao-jar解决了这个问题。以下链接将向您提供更多详细信息:
您的类路径中是否有较旧版本的Spring Security?在URL上使用Ctrl+mouseover,IntelliJ将显示它在文件系统中找到XSD的位置。谢谢,这修复了我的问题。可能是