关于数据库逆向生成出错

来源:2-18 MyBatis 数据库逆向生成工具

慕工程3056302

2021-02-11 14:41:32



问题描述:

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://img.mukewang.com/climg/6024d0b00949c50d28801800.jpg

尝试过的解决方式:

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

写回答

1回答

风间影月

2021-02-11

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

0

Java架构师-技术专家

千万级电商项目从0到100全过程,覆盖Java程序员不同成长阶段的核心问题与解决方案

2672 学习 · 5839 问题

查看课程