RestTemplate实现http和https方式的远程调用
这里简单记录一下使用方法
1.配置类
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.client.SimpleClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;
原创
2020-09-17 16:51:24 ·
1592 阅读 ·
0 评论