applicationContext.xml文件中class中的内容不能提示

eclipse 使用spring,applicationContext.xml文件中class中的内容不能提示







可以在help->Eclipse Marketplace安装插件

1 ,Spring Tool Suit (STS)


2, Hibernate Tools 将这两个插件安装好,再输入class名就会有提示


windows-->preference--->myeclipse--->files and editors-->xml--->xmlcatalog

点击add ,在出现的窗口中的 Key Type 中选择URI,在location中选择File system,然后再spring解压目录中的

dist/resources 目录中选择spring-beans-2.5.xsd,回到设置窗口的时候,不要着急关闭窗口,

应该把窗口中的

Key Type改为Schema location ,

Key 改为http://www.springframework.org/schema/beans/spring-beans-2.5.xsd


其中一个应该可以,

猜你喜欢

转载自blog.csdn.net/u014304688/article/details/70213284