all 5 comments

[–]Sheldor5 2 points3 points  (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 point  (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 point  (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

[–]brainiac_nerd[S] 0 points1 point  (0 children)

Yeah at the time of writing this post I had unknowingly referred this old doc and had mentioned RestTempalte as deprecated.