会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
牧之
Life is not what you have gained but what you have done!
博客园
首页
新随笔
联系
订阅
管理
2021年5月20日
RestTemplate中headers中添加Host不生效
摘要: 在使用restTemplate访问内网接口时,不打算指host,支持ip访问,所以我们需要再header中指定host.但经调试,发现HttpURLConnection中Host无法覆盖.解决方案: Object requestBody = ImmutableMap.of("username", u
阅读全文
posted @ 2021-05-20 22:52 牧之丨
阅读(639)
评论(0)
推荐(0)
编辑
公告