为什么intelliJ没有使用正确版本的.xsd文件 [英] Why is intelliJ not using the correct version of .xsd file

查看:124
本文介绍了为什么intelliJ没有使用正确版本的.xsd文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的spring-security.xml文件

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">

所以最后一行指定3.0版本,如果你转到URL,这是一个有效的xsd文件它将显示架构。如果我在那个xsd上发出命令+ B,它就会带我到2.0版本。

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.

我知道我的计算机上存在3.0.8 spring-security xsd文件,intelliJ只是不会使用它(即使它下载了它!)。

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!).

如何在项目中手动放置此xsd文件?

How do I manually place this xsd file in my project?

推荐答案

我遇到了同样的问题,我通过从应用程序中删除spring-dao jar解决了这个问题。以下链接将为您提供更多详细信息:
https://jira.spring.io/浏览/ SPR-4161

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

这篇关于为什么intelliJ没有使用正确版本的.xsd文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆