Sping Cloud项目启动报A component required a bean of type 'com.tianyan.bbc.dao.SecurityUserBaseMapper&
犀渠玉剑良家子,白马金羁侠少年。这篇文章主要讲述Sping Cloud项目启动报A component required a bean of type '
com.tianyan.bbc.dao.SecurityUserBaseMapper&相关的知识,希望能为你提供帮助。
项目构建正常,启动和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
***************************
【Sping Cloud项目启动报A component required a bean of type '
com.tianyan.bbc.dao.SecurityUserBaseMapper&】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"})
推荐阅读
- Android 内核编译记录
- APP开发,微信第三方登录的介绍
- 易利购社交电商APP开发
- 精英审判下载|精英审判app下载
- Oracle中append与Nologging
- android注解处理技术APT
- Mac上eclipse安卓开发查看SQLite数据库
- appscan入门操作
- Android架构设计之插件化组件化