摘要: 在使用restTemplate访问内网接口时,不打算指host,支持ip访问,所以我们需要再header中指定host.但经调试,发现HttpURLConnection中Host无法覆盖.解决方案: Object requestBody = ImmutableMap.of("username", u 阅读全文
posted @ 2021-05-20 22:52 牧之丨 阅读(639) 评论(0) 推荐(0) 编辑