spring的配置文件applicationContext中没有快捷键问题

这个对于很多xml格式的配置文件编辑很有帮助,以spring配置文件为例:

  myeclipse的童鞋进入:window -> Preferences-> MyEclipse -> Editors -> XML ->XML Catalog

  eclipse的童鞋进入:window -> Preferences-> XML ->XML Catalog

  或者再接再 Preferences 里面的搜索框输入xml就能看到其下面有 XML Catalog 选中

  选择:选中“User Specified Entries”,点击“Add...”按钮

  填入:

  location: 选择本地文件系统上 spring-beans-3.2.xsd 文件 (我的在E:\spring\spring-beans-3.2.xsd)

注意:spring-beans-3.2.xsd在spring-beans-3.2.8.RELEASE.jar包内,解压后可以找到

  Key Type: 选择URI

  Key:

  点击确定

  将spring配置文件关闭再重新打开即可。可以使用XML Editor打开这些xml文件。

posted @ 2017-06-28 21:18  王庆84411433  阅读(2413)  评论(0编辑  收藏  举报