[SpringBoot报错]Consider defining a bean of type ‘xxx‘ in your configuration, NoSuchBeanDefinitionExce
报错详情:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-08-03 09:41:13.156|ERROR|||||||||||main|LoggingFailureAnalysisReporter|
***************************
APPLICATION FAILED TO START
***************************
Description:
Field UserRoleRefv01Service in com.xxx.xxxx.xxxxx.xxxxxx.controller.v01.controller.xxxxxController required a bean of type 'xxx.xxxx.xxxx.xxxxxx.xxxxxx.service.portal.v01.service.xxxxx' that could not be found.
The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'xxx.xxxx.xxxx.xxxxxx.xxxxxx.service.portal.v01.service.xxxxx' in your configuration.
NoSuchBeanDefinitionException: No qualifying bean of type 'xxx.xxxxx.xxxx.service.portal.v01.service.XxxxXxx' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
解决方案
在service实现类(xxxxxxImpl.java)里添加
@Service('xxxxxx')
[SpringBoot报错]Consider defining a bean of type ‘xxx‘ in your configuration, NoSuchBeanDefinitionExce相关推荐
- 解决启动报错Consider defining a bean of type ‘xxx‘ in your configuration.
解决启动报错Consider defining a bean of type 'xxx' in your configuration. 报错截图 解决方法:查看注解是否同时存在@AllArgsCons ...
- springboot启动报错: Consider defining a bean of type ‘XXX‘ in your configuration
Consider defining a bean of type 'XXX' in your configuration 出现这个错误,要看看你是否用到了某些组件,但是启动类上没加相应的注解.比如说我 ...
- springboot 工程启动报错之Consider defining a bean of type ‘XXX’ in your configuration.
一.前言: 使用springboot自动注入的方式搭建好了工程,结果启动的时候报错了!!!,错误如下图: Description:Field userEntityMapper in com.xxx.x ...
- SpringCloud - 整合Nacos启动报错Consider defining a bean of type IClientConfig
SpringCloud - 整合Nacos启动报错Consider defining a bean of type IClientConfig 前言 一. 尝试解决Bug的几种不合适方案 1.1 添加 ...
- SpringBoot 出现 Consider defining a bean of type ‘xxx‘ in your configuration 问题解决方案
大家好,我是trikey. 最近在编写练手项目代码时,出现了Consider defining a bean of type 'xxx' in your configuration 问题,这里简单记录 ...
- Consider defining a bean of type `xxx` in your configuration问题解决
Consider defining a bean of type `xxx` in your configuration问题解决 参考文章: (1)Consider defining a bean o ...
- 【无法找到FeignClient的bean】 Consider defining a bean of type ‘xxx‘ in your configuration.
Consider defining a bean of type 'xxx' in your configuration. 错误原因:该FeignClient接口在其他jar包中,@EnableFei ...
- Consider defining a bean of type ‘xxx‘ in your configuration
当你的spring web项目运行时突然报Consider defining a bean of type 'xxx' in yourconfiguration这个样的异常时,不妨试试以下骚操作解决问 ...
- SpringBoot启动报错Consider defining a bean of type ‘com.test.springmvc.dao.xx‘ in your configuration.
报错信息如下: Description:Field userDao in com.test.springmvc.service.impl.UserServiceImpl required a bean ...
最新文章
- 干货丨各种机器学习任务的顶级结果(论文)汇总
- ULC2003达林顿管阵列STC8K28驱动电路模块
- 集成运算同相放大器和反向放大器的选择
- linux下面显示所有正在运行的线程
- html 清除浮动怎么写,清除浮动的css写法有哪些
- 并不对劲的BJOI2019
- 亚信安全信舱(DS)取得联通天玑安全平台兼容性认证
- Laravel Eloquent关联模型查询设置查询条件与指定字段
- 面试开发可以用python_Python开发工程师面试题(五)
- c++ 多线程 类成员函数_C++11多线程
- SpringBoot基础-refresh方法解析
- java 什么是成员变量_java成员变量和方法的含义是什么?异同点有哪些?
- xctf攻防世界 MISC高手进阶区 MISCall
- mysqlclient和pymysql如何选择?_gevent_waiter的使用
- 淘宝API接口调用:item_search_img - 按图搜索淘宝商品(拍立淘)
- 如何才是一名优秀的好员工
- STM32+ESP8266+MQTT连接阿里云服务器(四、STM32连接阿里云平台)
- OmniPlayer Pro for Mac v1.4.12 支持无线投屏的视频播放器
- OK6410 V4L2 分析
- JVM调优实战:to-space exhausted Evacuation Failure
热门文章
- 第一期 android源码集合987个实例(从网上摘抄,在此记录下)
- 如何快速搭建离线下载器Aria2以及管理
- 一种解决 【Jupyter Notebook 由于超时无法打开kernel】与【Pycharm 卡在启动界面】的方法
- 电路设计_选用LDO器件要注意哪些参数
- 使用R语言进行生存分析
- web服务器读取客户端设备信息,人机界面与组态.ppt
- 高斯模糊-Gaussian blur
- for循环语句java图形_Java图形开发人员指南,用于其中的图形和检测循环
- 阿迪达斯大中华区2019年第三季度销售额再录得双位数增长
- Windows系统左ctrl和左alt键互换