BladeX2.8.2版本中,服务之间调用,消费者服务中注入提供者的FeignClient失败

Blade 未结 1 705
laudy
laudy 剑童 2021-09-11 15:46

一、该问题的重现步骤是什么?

1. demo服务作为提供者服务,demo-api中提供feignClient:IDemoClient

2. consumer服务作为消费者服务

3.在consumer服务的controller中注入IDemoClient,在启动consumer服务的时候报错:

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in com.example.demo.consumer.controller.DemoConsumerController required a bean of type 'com.example.demo.feign.IDemoClient' that could not be found.


Action:

Consider defining a bean of type 'com.example.demo.feign.IDemoClient' in your configuration.


二、你期待的结果是什么?实际看到的又是什么?

期待能注入成功,正常启动并调用提供者的服务接口。

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

商业授权版本,2.8.2 Release,win10

四、请提供详细的错误堆栈信息,这很重要。


五、若有更多详细信息,请在下面提供。

1条回答
  • https://sns.bladex.cn/q-630.html

    0 讨论(0)
提交回复