When using REST calls in Spring Boot project, and as I'm lazy guy, my hands quickly go to keyboard to write a config for a Spring's RestTemplate like this one:
@Bean
public RestTemplate restTemplate() {
return new RestTemplate();
}
This is in order not to instanciate it every time. Why don't we have it configured as a Bean by default?