码迷,mobileinhere.cn
首页 > 移动开发 > 详细

【spring boot】mybatis启动报错:consider defining a bean of type 'com.newhope.interview.dao.usermapper' in your configuration.

时间:2018-02-25 00:13:23      阅读:5905      评论:0      收藏:0      [点我收藏+]

标签:ida   eal   ror   through   expected   field   standard   deb   cep   

启动报错:

2018-02-24 22:41:00.442  warn 2952 --- [           main] ationconfigembeddedwebapplicationcontext : exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.unsatisfieddependencyexception: error creating bean with name ‘usercontroller‘: unsatisfied dependency expressed through field ‘userservice‘; nested exception is org.springframework.beans.factory.unsatisfieddependencyexception: error creating bean with name ‘userserviceimpl‘: unsatisfied dependency expressed through field ‘usermapper‘; nested exception is org.springframework.beans.factory.nosuchbeandefinitionexception: no qualifying bean of type ‘com.newhope.interview.dao.usermapper‘ available: expected at least 1 bean which qualifies as autowire candidate. dependency annotations: {@org.springframework.beans.factory.annotation.autowired(required=true)}
2018-02-24 22:41:00.444  info 2952 --- [           main] o.apache.catalina.core.standardservice   : stopping service [tomcat]
2018-02-24 22:41:00.465  info 2952 --- [           main] utoconfigurationreportlogginginitializer : 

error starting applicationcontext. to display the auto-configuration report re-run your application with ‘debug‘ enabled.
2018-02-24 22:41:00.564 error 2952 --- [           main] o.s.b.d.loggingfailureanalysisreporter   : 

***************************
application failed to start
***************************

description:

field usermapper in com.newhope.interview.service.impl.userserviceimpl required a bean of type ‘com.newhope.interview.dao.usermapper‘ that could not be found.


action:

consider defining a bean of type ‘com.newhope.interview.dao.usermapper‘ in your configuration.

 

 

解决方案:

www.cnblogs.com/jealousgirl/p/bean.html

 

====================================

未完结

【spring boot】mybatis启动报错:consider defining a bean of type 'com.newhope.interview.dao.usermapper' in your configuration.

标签:ida   eal   ror   through   expected   field   standard   deb   cep   

原文地址:www.cnblogs.com/sxdcgaq8080/p/8467965.html

(9)
(3)
   
举报
评论 一句话评论(0
0条  
登录后才能评论!
2014 mobileinhere.cn 版权所有 京icp备13008772号-2
华人娱乐注册