问题
Here is my spring-security.xml file
<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">
So the last line specifies a 3.0 version, which is a valid xsd file if you go to the URL it will show schema. If I COMMAND + B on that xsd it takes me to a 2.0 version.
I know a 3.0.8 spring-security xsd file exists on my computer, intelliJ just won't use it (even though it downloaded it!).
How do I manually place this xsd file in my project?
回答1:
I had the same problem, i resolved it by removing the spring-dao jar from the application. Below link will provide more details to you : https://jira.spring.io/browse/SPR-4161
来源:https://stackoverflow.com/questions/17794728/why-is-intellij-not-using-the-correct-version-of-xsd-file