java.lang.RuntimeException: org.dom4j.DocumentException: Error on line 4 of document : The document type declaration for root element type "mapper" must end with '>'. Nested exception: The document type declaration for root element type "mapper" must end with '>'.
at zx.mybatis.utils.XMLConfigBuilder.loadConfiguration(XMLConfigBuilder.java:106)
一般是.xml文件出错,本次修改IUserDao 文件为:
<?xml version="1.0" encoding="UTF-8"?>
<mapper namespace="zx.dao.IUserDao">
<!--配置查询所有-->
<select id="findAll" resultType="zx.domain.User">
select * from user
</select>
</mapper>
即可正确运行