报错如下:
Description:

A component required a bean named 'checkPsptService' that could not be found.

Action:
Consider defining a bean named 'checkPsptService' in your configuration.

2018-05-15 14:46:21.539 ERROR 8652 --- [ina-startStop-1] org.apache.catalina.core.ContainerBase : A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/able_server]]......

配置spring-dubbo.xml:
<dubbo:service id="CheckPsptService"
interface="com.test.able.service.CheckPsptService" ref="checkPsptService"
timeout="${dubbo.timeout}" owner="${dubbo.application.owner}" group="${dubbo.service.group}" />

解决:
根据报错信息的提示,断定是 ref="checkPsptService"引用的有问题,在实现类上注解写的是:br/>@Service("CheckPsptService")
public class CheckPsptServiceImpl implements CheckPsptService{

Service注解和dubbo配置文件中引用的不一致,导致无法引用到。将spring-dubbo.xml中的ref和注解Service改为一致就可以了。

转载于:https://blog.51cto.com/694746637/2116558

A component required a bean named 'XXXService' ...相关推荐

  1. 记录A component required a bean named ‘studentService‘ that could not be found.

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 报错如题:  A component required a bean named 'studentS ...

  2. 用@Quartz配置启动任务遇到“A component required a bean named 'Myjob1' that could not be found”的问题

    先上SpringBoot项目搭建@Quartz系统任务启动流程,报错解决方法在文章末尾 1.新建项目 ①新建SpringBoot项目,只需添加Web和Quartz Scheduler依赖 ②使用@En ...

  3. 解决A component required a bean named ‘entityManagerFactory‘ that could not be found

    SpringBoot 整合 Spring Data JPA 报警 1.问题 2.三步走 2.1检查依赖 2.2删除依赖 2.3检查DB配置类 1.问题 ************************ ...

  4. springboot启动报错A component required a bean named ‘xxx‘ that could not be found.

    我刚开始学习springboot,在此记录学习过程中遇到的第一个问题. 1.首先我创建了一个简单的项目,但是启动报错. 2. 然后花了几个小时时间在网上找了很多材料,发现都不能解决我这个问题,后来无意 ...

  5. A component required a bean of type ‘com.wyh.service.XXX‘ that could not be found.

    A component required a bean of type 'XXXService' that could not be found 组件需要找不到"Service"类 ...

  6. 解决:A component required a bean of type ‘javax.jms.Queue‘ that could not be found.

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 情景描述:只是想简单写个 ActiveMQ 的小样,启动服务却报错: Error starti ...

  7. A component required a bean of type ‘com.lw.mapper.StudentMapper‘ that could not be found.

    当我们用springboot整合mybatis时,发生以下错误 Description:A component required a bean of type 'com.lw.mapper.Stude ...

  8. 【A component required a bean of type ‘‘ that could not be found】

    A component required a bean of type 'cn.gson.oasys.model.dao.managework.mappers.MwDetailsMapper' tha ...

  9. SpringBoot中service注入失败 出现A component required a bean of type 'com.czxy.changgou3.mapper.OrderGoodsMa

    错误信息 Error starting ApplicationContext. To display the conditions report re-run your application wit ...

最新文章

  1. Windows 7使用MMC管理控制台“远程桌面”功能【转载】
  2. 用 C 语言开发一门编程语言 — S-表达式
  3. C#调用dll中的函数
  4. MySQL—表的完整性约束(外键约束)(一)
  5. SQL Server 2008将数据导出为脚本 [SQL Server]
  6. css flexbox模型_CSS Flexbox在全国范围内的公路旅行中得到了解释
  7. Django 查询表的几种方式
  8. Point to Raster 工作原理
  9. 【历史上的今天】9 月 20 日:中国正式接触互联网;抖音上线;中科大成立
  10. PAT 1124 Raffle for Weibo Followers
  11. 【Qtree】Query on a tree系列LCT解法
  12. ISO SAE 21434-2021 要求、建议、允许(RQ、RC、PM)整理
  13. 哲学家就餐问题python实现
  14. 国内计算机博士去百度云,于博士Cadence视频教程60集全套百度网盘分享
  15. python运行时不显示cmd命令窗口的方法
  16. 如何复制word中带修订标记的段落
  17. 使用Mandelbulb3D渲染三维分形
  18. Python 数据分析微专业课程--项目03 视频网站数据清洗整理和结论研究
  19. 跑腿软件开发怎么选择公司
  20. Unity 工具-Opus音频压缩(安卓篇)

热门文章

  1. log_bin.index not found 启动报错解决
  2. 【JAVA笔记——道】对象生命周期详解
  3. Codeforces Round #319 (Div. 1) B. Invariance of Tree 构造
  4. Session和几种状态保持方案理解
  5. C++实现CString和string的互相转换(转)
  6. Visual Studio 6.0编译PWLib1.12总结
  7. [导入]将文字内容和图片插入到Access数据库(转帖)
  8. php向页面中添加数据_PHP创建文件,并向文件中写入数据,覆盖,追加的实现代码...
  9. centos7 安装mysql php_Centos7安装mysql与php的方法
  10. python 服务器端_python实现服务器端