The content of element type "mapper" must match "EMPTY"报错

 报错The content of element type "mapper" must match "EMPTY".

<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
    "http://mybatis.org/dtd/mybatis-3-
config.dtd">

 原因:注释出问题

两处config  改成mapper

<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD mapper 3.0//EN"
    "http://mybatis.org/dtd/mybatis-3-
mapper.dtd">

猜你喜欢

转载自blog.csdn.net/weixin_41887276/article/details/89092639