码迷,mamicode.com
首页 > 移动开发 > 详细

mybatis3的mapper文件报Referenced file contains errors

时间:2014-12-22 21:10:44      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:

背景:

        在springmvc+mybatis+oracle项目中,使用java代码反编译输出的xml报错
 
错误提示:
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.
 
java代码:
            少了www.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
 
改为
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd" >
 
 

mybatis3的mapper文件报Referenced file contains errors

标签:

原文地址:http://www.cnblogs.com/fzdyd/p/4178944.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!