老师,再课程的学习中,我可以可以加你微信吗,程序调试中遇到的调试问题,自己纠结了很长时间得不到解决
来源:1-1 课程介绍

慕设计91290
2019-06-23
免费课程里基础springboot集成mybatis时,按照教程一步步来的调试出现问题,没找到好的解决方法。可以加您微信,或者提供个问答的地方。
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘app’: Unsatisfied dependency expressed through field ‘userDOMapper’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userDOMapper’ defined in file [E:\miaosha\target\classes\com\miaoshaproject\dao\UserDOMapper.class]: Unsatisfied dependency expressed through bean property ‘sqlSessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.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 [E:\miaosha\target\classes\mapping\UserDOMapper.xml]’; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.miaoshaproject.dao.UserDOMapper.BaseResultMap
可以帮助解答下吗?感谢您
1回答
-
龙虾三少
2019-06-23
你检查下你的pom文件 需要和我课程中的版本完全一致才行
012019-06-23
相似问题