I would like to somehow introduce all the HttpMessageConverter instances registered in Spring-MVC. I can successfully implement everything that has been registered through.
private HttpMessageConverter[] converters; @Autowired public void setConverters(HttpMessageConverter[] converters) { this.converters = converters; }
However, this only introduces if the converter was registered within the context (i.e. if it is defined outside of <annotation-driven> ).
I made a drawing, I would try using <beans:ref inside <annotation-driven><message-converters> , but it is not supported in Spring -web 3.1.
Is there any class that I can add that might have a property that I could use to get the converters? Ideally, I would like to see that the order in the filter chain is also registered.
source share