首页 > 移动平台 > 详细

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

时间:2018-12-14 15:23:44      阅读:4487      评论:0      收藏:0      [点我收藏+]

项目构建正常,启动和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.

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!