Example for Spring RestTemplate GET/POST/PUT/DELETE
- 1. 扩展 RestTemplate Get 方法, make GET with Request Body.
- 2. RestTemplate 代理(proxy)设置
- 3. RestTemplate OAuth
- 4. 完整Class example
1. 扩展 RestTemplate Get 方法, make GET with Request Body.
private static final class HttpComponentsClientHttpRequestWithBodyFactory extends HttpComponentsClientHttpRequestFactory
private static final class HttpGetRequestWithEntity extends HttpEntityEnclosingRequestBase
refer1: https://cleanprogrammer.net/making-get-request-with-body-using-spring-resttemplate/
refer2: https://mekaso.rocks/get-requests-with-a-request-body-spring-resttemplate-vs-apache-httpclient