SpringBoot启动报错"Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Err"

启动报如下异常:无法创建Mybatis的映射接口Bean类

Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'userDaoMapper' defined in file [E:\WebProject\

SpringBoot启动报错

这个问题找了我两天左右的时间,又是改注解又是重新写一个项目Demo来排查这个问题
后来才在poml文件找到问题所在.问题是我poml文件引入了两个Mybatis依赖包.一个是整合SpringBoot的,一个是整合Spring的jar包.两个一起出现,起冲突了

SpringBoot启动报错

把Spring的Mybatis去掉既可以了!

你可能感兴趣的:(jave-web,SpringBoot,mybatis)