ResTemplate javaDoc says it will be deprecated
Also this page mentions the new class to call over HTTP. It is possible to use it in both synchronous and asynchronous ways:
WebClient offers a modern alternative to the RestTemplate with efficient support for both sync and async, as well as streaming scenarios
Though I not see in javaDoc for WebClient any note about synchronous way it works:
So it is not clear how to use WebClient in synchronous way?
Also I have wider question related on StackOverflow, any help would be nice: https://stackoverflow.com/questions/54078309/spring-boot-http-call-to-remote-web-service