记录一下自己的开发报错之路

问题描述

在使用微服务之间的服务调用,并且实现了降级处理的。编译时报错

No fallbackFactory instance of type class com.chongyou.system.api.factory.RemoteUserRuleFallbackFact

问题大致原因是spring找不到这个服务的实现bean。

也是在网上看大家怎么解决的,很多都都说在启动文件添加包扫描注解。但是我发现我的是有的。

后来发现在 src/resources/META-INF/spring.factories 文件里对这些服务service有注册,大概是要扫描这些服务类。加上就好了

No fallbackFactory instance of type class com.chongyou.system.api.factory.RemoteUserFallbackFactory相关推荐

  1. No fallbackFactory instance of type class com.ruoyi.system.api.factory.RemoteLogFallbackFactory foun

    报错找不到这个类(托底类) /*** 日志服务降级处理* * @author ruoyi*/ @Component public class RemoteLogFallbackFactory impl ...

  2. No fallbackFactory instance of type class com.neuray.oa.security.service.system.api.factory.RemoteDe

    feign服务调用,项目启动报错: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating b ...

  3. No enclosing instance of type JDStudent is acAcessible. Must qualify the allocation with an enclosin

    No enclosing instance of type JDStudent is acAcessible. Must qualify the allocation with an enclosin ...

  4. 解决No enclosing instance of type * is accessible

    写一个内部类,并在构造函数中初始化时,遇到报错,搜索问题后发现,有网友出现过类似的问题,下面这个是说的浅显明白的,并确实解决了问题.于是,以下内容照搬过来,不再多费键盘了. public class ...

  5. No enclosing instance of type SmsUtils is accessible. Must qualify the allocation with an enclosing

    No enclosing instance of type SmsUtils is accessible. Must qualify the allocation with an enclosing ...

  6. No fallback instance of type class found for feign client user-service(转)

    No fallback instance of type class found for feign client user-service(转) 1.错误日志 在 feign 开启熔断,配置 fal ...

  7. Java出现No enclosing instance of type Test is accessible. Must qualify the allocation with an enclosin

    最近研究LDA源代码时,里面涉及到Comparable方法的使用.以前用过这个排序方法,现在想回顾一下.以下是程序,感觉没问题啊,结果报错了: Exception in thread "ma ...

  8. Java变异出现错误:No enclosing instance of type XXX is accessible

    摘要:写java代码时遇到下面的编译错误. 本文分享自华为云社区<Java中出现No enclosing instance of type XXX is accessible问题>,作者: ...

  9. No enclosing instance of type FormDetailBean is accessible. Must qualify the allocation with an encl

    最近在看Java,在编译写书上一个例子时,由于书上的代码只有一部分,于是就自己补了一个内部类.结果编译时出现:No enclosing instance of type E is accessible ...

最新文章

  1. python社会学科需要学些什么_学好Python能做什么
  2. 埃森哲、亚马逊和万事达卡抱团推出的区块链项目有何神通?
  3. wowza官方测试报告
  4. 关于Debug和Release编译方式
  5. 谨慎的覆盖clone方法
  6. Android之组件化开发
  7. C#在后台运行操作:BackgroundWorker的用法
  8. 初识HTML和WEB标准
  9. swift 学习- 12 -- 方法
  10. echsop privilege.php?act=login,ecshop 后台登陆自动退出的一种可能情况(目录大小写问题)...
  11. 国内手机号正则表达式
  12. osx jni 开发 1
  13. ubuntu 上安装Nginx1.9.*
  14. Dev5.4.0由于与64位的版本不兼容的问题解决方案
  15. WebGL之3D地球
  16. python中shape是什么意思_对numpy中shape的深入理解
  17. 区分——带你领略分布式的专业评测集散地
  18. iOS直角矩形图片绘制
  19. 油猴安装、编写及添加脚本 笔记
  20. Games202作业1 Unity(更新完毕)

热门文章

  1. 自动化构建部署(CICD)
  2. BUU Web[33-36]
  3. golang GC垃圾回收机制
  4. 本机与虚拟机WIN7之间互传文件
  5. 永久一键关闭QQ频道,不用重新安装
  6. 什么叫贴片(电子元器件)
  7. PTA 数据结构 修理牧场
  8. windows 驱动开发基础(二)事件通知---关于irp处理,DPC,链表等
  9. vue 实现文字转语音tts
  10. 读取工程下的文档 统计重复的姓名 并按次数排序 java_java并打印出重复的姓名和重复的次数,并按重复次数排序...