在项目搭建过程当中,配置Mybatis配置文件时,出现错误:在UserMapper.xml头文件出现 "Referenced file contains errors(file:/D:/config/mybatis-3-mapper.dtd). For more information, right click on the message in the Problems View and select "Show Details..." 的问题????java
对于这个问题,出现问题的mapper.xml文件的头文件是mybatis
<?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">
将
"http://mybatis.org/dtd/mybatis-3-config.dtd">
修改成 app
"http://www.mybatis.org/dtd/mybatis-3-config.dtd">ide