这个对于很多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文件。
在eclipse中为xml文件编辑添加代码提示
最新推荐文章于 2021-06-21 21:53:15 发布
本文介绍如何在MyEclipse中配置Spring XML Schema以增强XML文件编辑体验。通过详细步骤指导用户设置XML Catalog,实现对Spring配置文件的有效验证。
3178

被折叠的 条评论
为什么被折叠?



