Why is intelliJ not using the correct version of .xsd file

浪子不回头ぞ 提交于 2019-12-24 09:48:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!