`

mybatis3的mapper文件报Referenced file contains errors

阅读更多

最近使用mybatis.3.1.0时无意中碰到一个问题:

The errors below were detected when validating the file "mybatis-3-mapper.dtd" via the file "account-mapper.xml".  In most cases these errors can be detected by validating "mybatis-3-mapper.dtd" directly.  However it is possible that errors will only occur when mybatis-3-mapper.dtd is validated in the context of account-mapper.xml.

 解决方案:

将
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
改为
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">

 

分享到:
评论
3 楼 DetectiveBoy 2016-06-25  
万分感谢。
但是为什么会这样,之前好好的,突然就报错了。
2 楼 lui0101 2015-07-17  
1 楼 may_2014 2014-12-16  

相关推荐

Global site tag (gtag.js) - Google Analytics