Eclipse中导入MyBatis Mapper DTD 和 xsd文件

Eclipse中导入MyBatis Mapper DTD

1.Eclipse中打开window-->Preferences-->XML-->XML catalog

2.点击add按钮,弹出对话框

3.Location中填入你所下载的DTD文件的本机位置;

4.Key Type 选择 Public ID;
Key 则填入xml文档头部 <!DOCTYPE sqlMapConfig PUBLIC 后面的那些.
-//mybatis.org//DTD Mapper 3.0//EN

 

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 

posted @ 2019-07-11 15:13  长袖保暖  阅读(603)  评论(0编辑  收藏  举报