WebClient vs RestTemplate

后端 未结 4 1707
青春惊慌失措
青春惊慌失措 2021-01-30 10:45

As per spring 5:

WebClient is an interface representing the main entry point for performing web requests.

It has been created as a part of the Spring

4条回答
  •  不要未来只要你来
    2021-01-30 11:00

    WebClient supports asynchronous as well as synchronous calls. RestTemplate supports only synchronous calls. No changes are required in old code even if the RestTemplate is depracated(as long as you don't need asynchronous behaviour)

提交回复
热议问题