以下是具体的错误信息
Failed to parse mapping resource: ‘file [E:\github\LOSTFOUND\target\classes\mappers\PraiseMapper.xml]’;
nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is ‘file [E:\github\LOSTFOUND\target\classes\mappers\PraiseMapper.xml]’.
Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.lost_found.dao.PraiseMapper.BaseResultMa
错误原因: 使用逆向工程创建环境时多次执行了maven的语句, 导致mapper.xml文件中出现重复
解决办法: 在target文件下找到mapper目录, 找到出错的mapper.xml文件, 删掉重复的代码即可