No fallbackFactory instance of type class com.chongyou.system.api.factory.RemoteUserFallbackFactory
记录一下自己的开发报错之路
问题描述
在使用微服务之间的服务调用,并且实现了降级处理的。编译时报错
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相关推荐
- No fallbackFactory instance of type class com.ruoyi.system.api.factory.RemoteLogFallbackFactory foun
报错找不到这个类(托底类) /*** 日志服务降级处理* * @author ruoyi*/ @Component public class RemoteLogFallbackFactory impl ...
- No fallbackFactory instance of type class com.neuray.oa.security.service.system.api.factory.RemoteDe
feign服务调用,项目启动报错: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating b ...
- 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 ...
- 解决No enclosing instance of type * is accessible
写一个内部类,并在构造函数中初始化时,遇到报错,搜索问题后发现,有网友出现过类似的问题,下面这个是说的浅显明白的,并确实解决了问题.于是,以下内容照搬过来,不再多费键盘了. public class ...
- 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 ...
- 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 ...
- Java出现No enclosing instance of type Test is accessible. Must qualify the allocation with an enclosin
最近研究LDA源代码时,里面涉及到Comparable方法的使用.以前用过这个排序方法,现在想回顾一下.以下是程序,感觉没问题啊,结果报错了: Exception in thread "ma ...
- Java变异出现错误:No enclosing instance of type XXX is accessible
摘要:写java代码时遇到下面的编译错误. 本文分享自华为云社区<Java中出现No enclosing instance of type XXX is accessible问题>,作者: ...
- No enclosing instance of type FormDetailBean is accessible. Must qualify the allocation with an encl
最近在看Java,在编译写书上一个例子时,由于书上的代码只有一部分,于是就自己补了一个内部类.结果编译时出现:No enclosing instance of type E is accessible ...
最新文章
- python社会学科需要学些什么_学好Python能做什么
- 埃森哲、亚马逊和万事达卡抱团推出的区块链项目有何神通?
- wowza官方测试报告
- 关于Debug和Release编译方式
- 谨慎的覆盖clone方法
- Android之组件化开发
- C#在后台运行操作:BackgroundWorker的用法
- 初识HTML和WEB标准
- swift 学习- 12 -- 方法
- echsop privilege.php?act=login,ecshop 后台登陆自动退出的一种可能情况(目录大小写问题)...
- 国内手机号正则表达式
- osx jni 开发 1
- ubuntu 上安装Nginx1.9.*
- Dev5.4.0由于与64位的版本不兼容的问题解决方案
- WebGL之3D地球
- python中shape是什么意思_对numpy中shape的深入理解
- 区分——带你领略分布式的专业评测集散地
- iOS直角矩形图片绘制
- 油猴安装、编写及添加脚本 笔记
- Games202作业1 Unity(更新完毕)