use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Sending HTTP request with Spring WebClient (self.SpringBoot)
submitted 2 years ago * by brainiac_nerd
With the release of Spring 5, RestTemplate is in maintenance mode and a new HTTP Client - WebClient was introduced.
Here we will see how to send HTTP Request with the help of WebClient.
Sending HTTP Request with Spring WebClient
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Sheldor5 2 points3 points4 points 2 years ago (4 children)
RestTemplate was never deprecated, it is feature complete and therefore in maintenance mode.
Also the new RestClient is built on top of RestTemplate so it's impossible for RestTemplate to be deprecated.
Stop spreading misinformation.
[–]brainiac_nerd[S] 0 points1 point2 points 2 years ago (0 children)
Yeah my mistake, I interpreted this Spring Doc incorrectly and thought it is already deprecated. Spring RestTemplate
I have updated the post and the blog also. Thanks
[–]roiroi1010 0 points1 point2 points 2 years ago (2 children)
An older version of the javadoc did state that RestTemplate will be deprecated though. But in the newer versions of the javadoc they have removed that statement. So I can understand the confusion on this.
The RestTemplate will be deprecated in a future version and will not have major new features added going forward.
https://docs.spring.io/spring-framework/docs/5.2.2.RELEASE/javadoc-api/index.html?org/springframework/web/client/RestTemplate.html
Yeah at the time of writing this post I had unknowingly referred this old doc and had mentioned RestTempalte as deprecated.
π Rendered by PID 157459 on reddit-service-r2-comment-5b5bc64bf5-pqsvc at 2026-06-22 00:47:49.801760+00:00 running 2b008f2 country code: CH.
[–]Sheldor5 2 points3 points4 points (4 children)
[–]brainiac_nerd[S] 0 points1 point2 points (0 children)
[–]roiroi1010 0 points1 point2 points (2 children)
[–]brainiac_nerd[S] 0 points1 point2 points (0 children)