@Bean
    public RestTemplate restTemplate(final ClientHttpRequestFactory factory) {
        return new RestTemplate(factory);
    }
RestTemplate bean.
@param factory ClientHttpRequestFactory
@return RestTemplate
shenyu-web/src/main/java/org/apache/shenyu/web/configuration/RestTemplateConfiguration.java