Postman 的 Basic Auth:
根据以上图片分析:
Postman 的 Authorization 实际为:
header 中添加
Authorization: *******
******* => "Base" + " " + base64("Username"+":"+"Password") => "Basic "+ base64("VipSoft:123456") => "Basic VmlwU29mdDoxMjM0NTY="
Base64 在线编码、解码:https://base64.us/
Charles 抓包工具:https://www.cnblogs.com/vipsoft/p/18027014
知道 Header 如何添加后,Feign 就很好操作了:https://www.cnblogs.com/vipsoft/p/14822752.html
Map<String, Object> headerParam = new HashMap<>();
headerParam.put("Authorization","Basic "+ ConvertUtil.toBase64("VipSoft:123456"));