报错ResultMap已经包含了XXX,但你发现你的Mapper文件中没有同名的resultMap,也没有相同id的标签。
解决办法:在mybatis-config.xml中将的mappers标签中的配置删掉
借鉴文章:https://www.cnblogs.com/teach/p/13176201.html 作者北漂程序员
原因:mappers标签中如果配置了mapper标签,解析时会将mapper标签中的文件解析加载到configuration中
springboot 可以通过mabatis中mapper-locations的值找到Mapper文件。
springboot项目中如果再在mappers标签中配置具体的Mapper信息加载时会重复,因此报错Result Maps collection already contains value for XXX