摘要: RestTemplate是Spring提供的用于访问Rest服务的客户端,提供了多种便捷访问远程Http服务的方法,能够大大提高客户端的编写效率。RestTemplate 默认使用J2SE提供的方式(既java.net包提供的方式)创建底层的Http请求连接(SimpleClientHttpRequ 阅读全文
posted @ 2022-01-17 23:19 牧之丨 阅读(2132) 评论(0) 推荐(0) 编辑
摘要: resttemplate 调用https使用下面代码: @Bean @Primary public RestTemplate restTemplate(ClientHttpRequestFactory httpRequestFactory) { return new RestTemplate(htt 阅读全文
posted @ 2022-01-17 23:17 牧之丨 阅读(731) 评论(0) 推荐(0) 编辑