The following are the methods:
- public void setMessageConverters(List> messageConverters)
- public void setErrorHandler(ResponseErrorHandler errorHandler)
- public void setDefaultUriVariables(Map uriVars)
- public void setUriTemplateHandler(UriTemplateHandler handler)
I was expecting that RestTemplate would be immutable.
Does it mean that we are not meant to reuse a singleton bean of RestTemplate?
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire