在項目搭建過程當中,配置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