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

Continue reading

Author's picture

Stella Wang

桃李春风一杯酒,江湖夜雨十年灯

SOHO

China