本文主要是介绍Referenced file contains errors (http://mybatis.org/dtd/mybatis-3-mapper.dtd). For more information,,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
关于Referenced file contains errors (http://mybatis.org /dtd/mybatis-3-mapper.dtd)报错的解决方案
用Eclipse做Maven项目时,XML文件第一行经常出现这种错误:
Referenced file contains errors (http://mybatis.org/dtd/mybatis-3-mapper.dtd). For more information, right click on the message in the Problems View
and select “Show Details…”
只需对以下代码进行修改
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
改成:
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
问题就解决了。
这篇关于Referenced file contains errors (http://mybatis.org/dtd/mybatis-3-mapper.dtd). For more information,的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!