关于数据库逆向生成出错

关于数据库逆向生成出错



问题描述:

INFO: Stopping service [Tomcat]

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [tk/mybatis/mapper/autoconfigure/MapperAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [/Users/zch/Desktop/javaproject/foodie-dev/foodie-dev-mapper/target/classes/mapper/CarouselMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [/Users/zch/Desktop/javaproject/foodie-dev/foodie-dev-mapper/target/classes/mapper/CarouselMapper.xml]'. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.imooc.mapper.CarouselMapper.BaseResultMap

相关截图:

http://img1.sycdn.imooc.com//climg/6024d0b00949c50d28801800.jpg

尝试过的解决方式:

已经修改过调用数据库版本

正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
风间影月 2021-02-11 15:42:25

你这是直接导入项目运行的吗?当前不是逆向工具噢

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师