spring配置文件没有提醒
1.按照网上的常规配置:
- 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(改成相应的版本)
2.但是会发现属性部分还是没有提醒功能的,接着如下配置。
windows–>preference 在搜索处输入 Content Assist,会发现原来有很多的Content Assist,选择这个

然后再和平时配置提示功能这样来配置这里

总结:原来xml的提示功能,也要像配置java代码的提示功能那样有专门的地方配置的。
你的日积月累迟早会成为别人的望尘莫及。

浙公网安备 33010602011771号