报错找不到这个类(托底类)

/*** 日志服务降级处理* * @author ruoyi*/
@Component
public class RemoteLogFallbackFactory implements FallbackFactory<RemoteLogService>
{private static final Logger log = LoggerFactory.getLogger(RemoteLogFallbackFactory.class);@Overridepublic RemoteLogService create(Throwable throwable){log.error("日志服务调用失败:{}", throwable.getMessage());return new RemoteLogService(){@Overridepublic R<Boolean> saveLog(SysOperLog sysOperLog){return null;}@Overridepublic R<Boolean> saveLogininfor(String username, String status, String message){return null;}};}
}

微服务之间是通过Fegin进行调用,创建了API接口,供其他模块调用,如果API接口开启了熔断机制,分类服务就无法进行启动,显示找不到托底函数。需要在分类服务启动类上指定包名,
@SpringBootApplication(scanBasePackages = “com.ruoyi”)

@EnableRyFeignClients
@SpringBootApplication(scanBasePackages = "com.ruoyi")
public class RuoYiAuthApplication
{public static void main(String[] args){SpringApplication.run(RuoYiAuthApplication.class, args);}
}

No fallbackFactory instance of type class com.ruoyi.system.api.factory.RemoteLogFallbackFactory foun相关推荐

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

    记录一下自己的开发报错之路 问题描述 在使用微服务之间的服务调用,并且实现了降级处理的.编译时报错 No fallbackFactory instance of type class com.chon ...

  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. 剑指offer:面试题09. 用两个栈实现队列
  2. Linux下Python脚本自启动与定时任务详解
  3. 计划备份mysql数据库
  4. H5 微信公众号 授权登录 前后端分离篇(后端02)
  5. Python学习【第1篇】:Python简介以及入门
  6. vscode编写python不能查看定义_vscode开发ROS1(14)-python实现自定义消息
  7. 用iMindMap制作健康生活计划思维导图
  8. 白话计算机入门书籍--《穿越计算机的迷雾》有感
  9. word文档计算机基础考试,计算机基础考试题库(含答案)48924
  10. Android进阶知识(五):IPC基本概念之Binder、Binder工作机制及其原理
  11. 串的模式匹配算法之BF算法
  12. Vue2 Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db
  13. 一键批量PDF转换成图片文件
  14. 用python画皮卡丘画法-用python画一只可爱的皮卡丘实例
  15. python turtle绕原点旋转_每天一个Python小技巧,用Python 画个多啦A梦,小猪佩奇,文末还有Python入门学习视频
  16. Win10下Wireless-AC 3165无法开启热点
  17. 【java感悟】接口,抽象类的关系
  18. android中handle的用法
  19. 信息学奥赛一本通C++语言-----1087:级数求和
  20. 游戏建模初学者该怎样学习?

热门文章

  1. RHCE 第二周作业
  2. CAD标注常见问题:为什么CAD软件快速标注后中间有很多0?
  3. 传奇开服教程完整版GOM引擎超详细的单机架设图文教程(小白一看就会)
  4. python字典求平均值_Python
  5. Django中ORM操作
  6. Python_文本分析入门_SnowNLP(1)
  7. Linux下查看CPU核数
  8. nginx实现对css,js文件缓存
  9. 烂泥:Domino8.5服务器迁移方案
  10. NativeActivity