This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Description
@royclarkson just let me know that the RestTemplate default constructor now comes with no MessageConverters, for performance reasons.
It's quite obvious that no one needs all the default converters, we usually only need one converter.
This change also means that by default, a @Rest annotated interface will come with en empty RestTemplate that will have no MessageConverter. To add one, we must do: restClient.getRestTemplate().getMessageConverters().add(new MappingJacksonHttpMessageConverter());
We should provide a new annotation (or a new attribute) to let users specify the MessageConverters.
@Rest
@Converters({MappingJacksonHttpMessageConverter.class, XmlAwareFormHttpMessageConverter.class})
public interface RestClient {
}
We should check that they have a default constructor. We could also allow classes annotated with @EBean, but I'm not sure this would provide much added value for now.