eclipse(xmlbuddy插件)為xml文件自動提示(同MyEclipse編輯XML的提示功能),以spring配置文件為例


先上一張圖,

window -> Preference... -> XML ->XML Catalog

選擇:選中“User Specified Entries”,點擊“Add...”按鈕

點“File System”按鈕,選擇“spring-beans-3.0.xsd”文件

key type:選擇Schema Location
按OK

 

eclipse將這些配置保存在文件:

eclipse工作空間workspace\.metadata\.plugins\org.eclipse.wst.xml.core\user_catalog.xml文件中:

 

<? xml version="1.0" encoding="UTF-8" standalone="no" ?>
< catalog  xmlns ="urn:oasis:names:tc:entity:xmlns:xml:catalog" >
   < system  systemId ="http://www.springframework.org/schema/beans"  uri ="file:///D:/eclipse3.6/eclipse/dropins/com.objfac.xmlbuddy-V2.0.9/spring/spring-beans-3.0.xsd" />
   < system  systemId ="http://www.springframework.org/schema/aop"  uri ="file:///D:/eclipse3.6/eclipse/dropins/com.objfac.xmlbuddy-V2.0.9/spring/spring-aop-3.0.xsd" />
   < system  systemId ="http://www.springframework.org/schema/jee"  uri ="file:///D:/eclipse3.6/eclipse/dropins/com.objfac.xmlbuddy-V2.0.9/spring/spring-jee-2.5.xsd" />
   < system  systemId ="http://www.springframework.org/schema/security"  uri ="file:///D:/eclipse3.6/eclipse/dropins/com.objfac.xmlbuddy-V2.0.9/spring/spring-security-3.0.xsd" />
   < system  systemId ="http://www.springframework.org/schema/jdbc"  uri ="file:///D:/eclipse3.6/eclipse/dropins/com.objfac.xmlbuddy-V2.0.9/spring/spring-jdbc-3.0.xsd" />
</ catalog >

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM