spring配置文件ApplicationContext.xml里面class等没有提示功能

来源:互联网 发布:淘宝大促时间表2016 编辑:程序博客网 时间:2024/05/21 09:10

**解决办法:**windows–>perference–>myeclipse–>files and editors–>xml–>xml files–>xml catalog,然后点击add,如下图:
这里写图片描述
进入spring的解压路径,找到spring-framework-4.2.0.RELEASE/schema/beans路径,选择spring-beans-2.5.xsd,
先不要关闭窗口,key type和key按照下图所示设置:
这里写图片描述
到这里就完成了,然后重启myeclipse,就会发现xml文件中bean的class有提示了。

阅读全文
0 0
原创粉丝点击