关于数据库逆向生成出错
问题描述:
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
相关截图:
尝试过的解决方式:
已经修改过调用数据库版本
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星