@Bean(name = "alterRestTemplate")
    public RestTemplate restTemplate(final ClientHttpRequestFactory factory) {
        RestTemplate restTemplate = new RestTemplate(factory);
        restTemplate.setInterceptors(Collections.singletonList(new HeaderRequestInterceptor()));
        return restTemplate;
    }
RestTemplate bean.
@param factory ClientHttpRequestFactory
@return RestTemplate
shenyu-alert/src/main/java/org/apache/shenyu/alert/config/RestTemplateConfig.java