在eclipse中为xml文件编辑添加代码提示

来源:互联网 发布:淘宝现在卖什么最火 编辑:程序博客网 时间:2024/05/22 13:26

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

进入:window -> Preference... -> MyEclipse -> Editors -> XML ->XML Catalog 

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

填入: 

location: 选择本地文件系统上spring-beans-2.0.xsd 文件 
Key Type: 选择URI 
Key: http://www.springframework.org/schema/beans/spring-beans-2.0.xsd 

点击确定 

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

原创粉丝点击