myeclipse中配置spring xml自动提示

这是一篇分享技巧的文章:myeclipse中配置spring xml自动提示。

① window -> preferences -> MyEclipse -> Files and Editors -> XML -> XML Catalog

myeclipse中配置spring xml自动提示


② 选择User Specified Entries,点击add按钮弹出一个选框,填入以下三项

i.Location:D:\baiduyun\Spring\spring_doc\soft\spring-framework-2.5.6\dist\resources\spring-beans-2.5.xsd (文件位置)
ii.Key Type:Schema Location
iii.Key:http://www.springframework.org/schema/beans/spring-beans-2.5.xsd

myeclipse中配置spring xml自动提示


③ 在xml文件中按' alt + / ' 会有有提示啦~~~

myeclipse中配置spring xml自动提示