class DefaultRestTemplateConfig {
    private static int connectTimeout = 4000;
    private static int readTimeout = 5000;

    @ConditionalOnMissingBean(name = "restTemplate")
    @Bean
    RestTemplate restTemplate() {<FILL_FUNCTION_BODY>}
}

        HttpComponentsClientHttpRequestFactory f = new HttpComponentsClientHttpRequestFactory();
        f.setConnectTimeout(connectTimeout);
        f.setReadTimeout(readTimeout);
        f.setConnectionRequestTimeout(connectTimeout);
        RestTemplate restTemplate = new RestTemplate(f);
        return restTemplate;
    
<no_super_class>