日期:2014-05-18  浏览次数:20830 次

eclipse编辑spring的配置文件,没有提示
首先申明:
    1、我的eclipse版本是4.2.0也就是juno,不是myeclipse   
   2、我在xml catalog里面配置了xsd
   3、我的xml文件是用xml editor打开的

我的spring配置文件命名空间和schemaLocation:
<beans xmlns="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.xsd">


我的xml catalog Element配置
Location:我的本地xsd文件
key type:Schema location
key:http://www.springframework.org/schema/beans/spring-beans.xsd

虽然没有提示影响不大,但是楼主是强迫症患者,不提示不舒服斯基~~~还望各位大神帮忙解惑

------解决方案--------------------
重启eclipse就行。小bug,有时出现。
------解决方案--------------------
引用:
Quote: 引用:

打开方式是不是xml editor?
重启还不行,楼主节哀吧。可能过一会就行了,反正不是你的问题!


是的,我是用xml  editor打开的,甚至content assis 我都去调了一下的。还是不行,按照网上大家的说的来做还是不行。然后觉得问题超出我对知识的认知了。

其实没有提示,也没有什么,本来写代码就是ctrl c+ ctrl v   就是觉得很不爽,有强迫症


copy 吧,有时候强迫症很痛苦