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

Sping Cloud项目启动报A component required a bean of type 'com.tianyan.bbc.dao.SecurityUserBaseMapper' that could not be found.

时间:2018-12-14 15:37:33      阅读:2068      评论:0      收藏:0      [点我收藏+]

标签:require   esc   user   display   ror   ica   spl   failure   cti   

项目构建正常,启动和Debug报以下错误:

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug‘ enabled.
2018-12-14 09:49:32.038 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter -

***************************
APPLICATION FAILED TO START
***************************

Description:

A component required a bean of type ‘com.tianyan.bbc.dao.SecurityUserBaseMapper‘ that could not be found.


Action:

Consider defining a bean of type ‘com.tianyan.bbc.dao.SecurityUserBaseMapper‘ in your configuration.

Disconnected from the target VM, address: ‘127.0.0.1:56886‘, transport: ‘socket‘

Process finished with exit code 1

 

解决办法:

启动类上加上

@MapperScan({ "com.tianyan.bbc.dao"})

Sping Cloud项目启动报A component required a bean of type 'com.tianyan.bbc.dao.SecurityUserBaseMapper' that could not be found.

标签:require   esc   user   display   ror   ica   spl   failure   cti   

原文地址:https://www.cnblogs.com/tianyan87/p/10119522.html

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