Skip to content
Advertisement

How to refactor the deprecated method .exchange()?

I have next method that uses in AbstractWebClient. How can I refactor it to get rid of deprecated .exchange() and save availability to work in abstract way?

JavaScript

Advertisement

Answer

You can use retrieve() method as suggested in exchange() documentation something like below:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement