问题:
SpringBoot启动时报错:
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'userDaoMapper' defined in file [E:\WebProject\...
解决方案:
pom.xml文件引入了两个Mybatis依赖包。一个是整合SpringBoot的,一个是整合Spring的jar包。两个一起出现,起冲突了,把Spring的Mybatis去掉就可以了

参考博客:
SpringBoot启动报错"Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Err" - LinFord1995的博客 - 优快云博客
https://blog.youkuaiyun.com/linford1995/article/details/77991482
本文解决了一个常见的SpringBoot项目启动错误,即由于同时引入了SpringBoot整合Mybatis和独立Spring Mybatis的依赖包导致的 UnsatisfiedDependencyException 错误。通过移除Spring Mybatis的依赖,可以有效避免此类冲突。
836

被折叠的 条评论
为什么被折叠?



