Spring配置文件中属性值不能提示的解决办法

原因:eclipse中没有配置xsd文件

解决办法:

         步骤一:把如下头文件拷贝到你的spring配置文件中。

         步骤二:根据头文件的中的链接点击去下载spring对应版本的.xsd文件下载到本地

         步骤三:下载好之后,接下来就是要添加到eclipse中

在eclipse菜单中进入

window->prefernces->XML->XML Catalog->Add ->FileSystem,然后选择刚才下载下来的.xsd文件

location:比如C:\spring-beans-2.5.xsd

key type:选择Schema Location

key:填写http://www.springframework.org/schema/beans/spring-beans-2.5.xsd     备注:自己引入spring配置文件的版本!

添加完成之后,重启eclipse即可!

你可能感兴趣的:(Spring配置文件中属性值不能提示的解决办法)