feign远程调用问题

1.问题描述:feign远程调用,需要给调用方传递header中的参数

处理:调用方法的传参中传递header的参数,并加注解 @RequestHeader

@PostMapping("/not-auth/ssoLogin/getAppTokenBySso")
RestfulEntityBySummit<SsoLoginResponse> ssoLoginAPP(@RequestBody EncryptedStringReq encryptedString,@RequestHeader(name = "mac-address",required = true) String macAddress);

参考链接:https://blog.csdn.net/lidai352710967/article/details/88680173?utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-1.vipsorttest&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-1.vipsorttest

 

上一篇:Latex中的顶格命令


下一篇:1655. Distribute Repeating Integers