问题标签 [reactive-feign-client]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - 当我使用 feign-reactive 从另一个微服务调用它时,我的微服务没有从请求标头接收“授权”
我有 2 个微服务,ProductStore和InvoiceStore。
我希望ProductStore通过API
和InvoiceStore提供产品信息来调用that API
以从ProductStore获取产品信息。但是ProductStore需要Authorization
检查信息,user authentication
因此我将@RequestHeader("Authorization") String auth
其用作我的参数变量FeignAPI
将其发送到ProductStore。Authorization
但是它报告说我测试它时他没有收到数据。
我@RequestHeader
这样使用是因为我在feign-reactive all 功能的示例中看到了它
我不知道是我在某处做错了什么还是我误解了@RequestHeader
.
请帮帮我!这是我的代码。
我的ProductStore提供了能够获取产品信息的 API。
我的InvoiceStorefeign-reactive
使用WebReactiveFeign调用该 API 。
我按照Playtika feign-reactive的自述文件中的说明将其应用到我的项目中,如下所示
首先,我写 FeignAPI
然后,我建立客户端IvoiceService
然后,我创建了一个 API
最后,我发出GET
请求,localhost:8083/invoice/test
但出现错误
告诉我我哪里做错了,拜托!!!谢谢你为我做的一切。