背景:
在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" >
时间: 2024-10-09 23:22:43