Similar to #15712, RestTemplate shouldn't be used in a reactive web application, but may be used in a servlet-based web application or a non-web application. We should update the conditions on RestTemplateAutoConfiguration accordingly to avoid its auto-configuration when running a reactive web application.