mybatis3的mapper文件报Referenced file contains errors
Posted on 2014-12-22 20:49 反转的雨滴 阅读(1276) 评论(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" >
浙公网安备 33010602011771号