首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > XML SOAP >

spring xml(点)自动揭示功能

2012-07-25 
spring xml(点)自动提示功能文章来源:http://www.blogjava.net/sy1214520/archive/2008/06/23/210173.html

spring xml(点)自动提示功能
文章来源:http://www.blogjava.net/sy1214520/archive/2008/06/23/210173.html

用eclipse,在导入相应的包后(有人说不导包也有提示,因为默认的eclipse导入了jdk的包),eclipse会有代码提示功能。
那么XML文件能不能也这样呢?其实也是可以的,只不过导包的地方不一样。下面以spring为例(虽然Myeclipse6.5中已经集成了,这里只是示范说明)。



进入:window -> Preference... -> MyEclipse -> Editors -> XML ->XML Catalog
选择:选中“User Specified Entries”,点击“Add...”按钮
填入:
URI: 请选择本地文件系统上SPRING_HOME\dist\resources\spring-beans-2.0.xsd 文件
Key Type: 选择Schema Location
Key: http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
点击确定
将spring配置文件关闭再重新打开即可。可以使用MyEclipse XML Editor打开这些xml文件。

热点排行