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

Blade 未结 4 5633
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条回答
  •  admin
    admin (楼主)
    2019-06-05 15:16

    有没有把这个fallback类定义成一个bean,否则会报错

    作者追问:2019-06-05 15:16

    fallback类使用@Component进行修饰了的


提交回复