myEclipse对spring的xml编撰时添加提示方法

myEclipse对spring的xml编写时添加提示方法

1、进入目录:window->Preferences->MyEclipse->Files and Editors->XML->XML Catalog
2、在右边选择“User Specified Entries”
3、点击“Add”,出现"Add xml catalog entry"
   1)Location:选择spring的“spring-beans-2.0.xsd”;
   2)修改Key Type:选择“Schema Location”;
   3)修改Key:在beans后增加"/spring-beans-2.0.xsd",即完整值为:http://www.springframework.org/schema/beans/spring-beans-2.0.xsd

    目的是和"applicationContext.xml"文件中的"xsi:schemaLocation"的值一致,不一致就不能出现提示;
   4)点击OK。