You must first declare:
GET method parameters support to carry through Body (HTTP1.1 began to support)
But the default is not supported RestTemplate drop! For the following reasons:
RestTemplate support setting HTTP request from the client tools setRequestFactory, support jdk, httpclient, okHttp, etc., is used by default SimpleClientHttpRequestFactory, the project uses JDK implementation, the underlying OutputStream to use data transfer body, does not support the GET transfer body.
We can modify the httpclient, just use HttpComponentsClientHttpRequestFactory, but the default GET request httpclient also does not support passing the body. There are two basic abstraction for defining the Http request
For details, please refer to:
https://blog.belonk.com/c/http_resttemplate_get_with_body.html