feign调用 fallback调用时启动报错,请问如何解决,将fallback注释了就可以进行正常启动

Blade 未结 4 5681
a756684713
a756684713 2019-06-05 11:14

Error creating bean with name 'deptController' defined in file [E:\IdeaWordSpace\SafetyStandards\blade-service\blade-system\target\classes\org\springblade\system\controller\DeptController.class]: Unsatisfied dependency expressed through constructor parameter 4; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springblade.anbiao.guanlijigouherenyuan.feign.IOrganizationsClient': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: No fallback instance of type class org.springblade.anbiao.guanlijigouherenyuan.feign.IOrganizationsClientBack found for feign client blade-anbiao


4条回答
  •  小莫
    小莫 (楼主)
    2020-11-12 11:13

    我在启动类上面加了注解就好了

    @ComponentScan("org.springblade")

提交回复