码迷,mamicode.com
首页 > 移动开发 > 详细

【实战问题】【14】org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxMapper'

时间:2019-08-19 23:20:44      阅读:1398      评论:0      收藏:0      [点我收藏+]

标签:依赖包   问题:   去掉   时报   map   ati   org   net   title   

问题:

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

【实战问题】【14】org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxMapper'

标签:依赖包   问题:   去掉   时报   map   ati   org   net   title   

原文地址:https://www.cnblogs.com/huashengweilong/p/11380127.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!