当前位置:首页 > 移动开发 > 正文

【实战问题】【14】org.springframework.beans.factory.UnsatisfiedDepen

2024-03-31 移动开发

问题:

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的博客 - CSDN博客
https://blog.csdn.net/linford1995/article/details/77991482

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/yidong/26424.html