Eclipse中導入MyBatis Mapper DTDspring
1.Eclipse中打開window-->Preferences-->XML-->XML catalogsql
2.點擊add按鈕,彈出對話框mybatis
3.Location中填入你所下載的DTD文件的本機位置;app
4.Key Type 選擇 Public ID;
Key 則填入xml文檔頭部 <!DOCTYPE sqlMapConfig PUBLIC 後面的那些.
-//mybatis.org//DTD Mapper 3.0//EN
xml
XSD 類型約束文件
1. Window->Preferences->XML->XML Catalog->User Specified Entries窗口中,選擇Add 按紐
2.在Add XML Catalog Entry 對話框中選擇或輸入如下內容:
Location: F:\soft\programmingSoft\Framework\Spring\spring-framework-2.5.6.SEC01-with-dependencies\spring-framework-2.5.6.SEC01\dist\resources\spring-beans-2.5.xsd
Key Type: Schema Location
KEY: http://www.springframework.org/schema/beans/spring-beans-2.5.xsd ip