首页 > 代码库 > mybatis3的mapper文件报Referenced file contains errors

mybatis3的mapper文件报Referenced file contains errors

背景:

        在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