Mybatis配置Mapper文件报错:"Show Details..."

来源:互联网 发布:淘宝商城入驻检测 编辑:程序博客网 时间:2024/05/16 04:58

 个人在项目搭建过程中,配置Mybatis配置文件时,出现错误:在UserMapper.xml头文件出现  "Referenced file contains errors(file:/D:/config/mybatis-3-mapper.dtd).

For more information, right click on the message in the Problems View and select "Show Details..." 的问题????


解决方法是:可能是由于我自己使用的Mybatis的config配置文件—— mybatis-3-mapper.dtd文件版本较低,当我更换一个高版本的mybatis-3-mapper.dtd文件后,在Eclipse中重新加载mybatis-3-mapper.dtd文件,在通过"Project ---> clear"项目后,错误消失,问题得以解决。

     如图片二、图片三、图片四所示。

记得配置mybatis-3-mapper.dtd到eclipse的XML中


原创粉丝点击