From RestTemplate.java#L78-L81

The RestTemplate will be deprecated in a future version and will not have major new features added going forward. See the WebClient section of the Spring Framework reference documentation for more details and example code.

Deprecate RestTemplate* classes.

Allow WebClient versions to be activated by a property.