mybatis的xml文件没有提示,出现the file cannot be validated as the XML definition.....

来源:互联网 发布:java opencv 人脸比对 编辑:程序博客网 时间:2024/06/06 08:27
问题一:mybatis的xml文件没有提示,出现the file cannot be validated as the XML definition..... - LoveTalyorSwift - Love Taylor Swift
1、下载dtd文件
 2、在eclipse中配置本地dtd文件

   在eclipse中Window->Preferences->XML->XML Catalog打开DTD配置界面

问题一:mybatis的xml文件没有提示,出现the file cannot be validated as the XML definition..... - LoveTalyorSwift - Love Taylor Swift

 3、选择User Specified Entries,然后点击 Add...

   location:即本地dtd文件所在的位置 如:D:\Compressed Files\mybatis-3-config.dtd

   key type:选择public id  -//mybatis.org//DTD Config 3.0//EN

   key:选择xml文件声明中的public key  

   Alternative web address:这个选择dtd的weburl,即本地dtd不存在时回去web上去找dtd 如: http://www.mybatis.org/dtd/mybatis-3-config.dtd

4、确定,重启eclipse就好了

装载:http://blog.163.com/mr_wang_xin/

0 0
原创粉丝点击