您的位置:首页 > 编程语言 > Java开发

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

2011-03-25 15:53 316 查看
这个对于很多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文件。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: