先上一張圖,
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>