Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17644

JavaDoc for RestTemplate seems out of order with WebClient

    XMLWordPrintable

    Details

    • Last commented by a User:
      true

      Description

      ResTemplate javaDoc says it will be deprecated

      https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/client/RestTemplate.html

      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:

      https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/reactive/function/client/WebClient.html

       

      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

        Attachments

          Activity

            People

            Assignee:
            rstoya05-aop Rossen Stoyanchev
            Reporter:
            pm Pavlo Morozov
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              3 years, 30 weeks, 1 day ago