-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement
Description
Kasra Rasaee opened SPR-7091 and commented
- There should be a way to inject custom http message converters into AnnotationDrivenBeanDefinitionParser. Currently its hardcoded and set to a private method
private ManagedList<RootBeanDefinition> getMessageConverters(Object source) { ... }
-
AnnotationMethodHandlerAdapter has hardcoded the HttpMessageConverters as well, when replacing the bean with something like
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="messageConverters">
<list>
<ref bean="customConverter"/>
</list>
</property>
</bean>
The AnnotationMethodHandlerAdapter bean is never replaced within the Spring Context.
Please let me know if there is a different solution?
Affects: 3.0.1, 3.0.2
Issue Links:
- <mvc:annotation-driven / > should supports the attributes of setting customized HttpMessageConverter bean list [SPR-7191] #11851 <mvc:annotation-driven / > should supports the attributes of setting customized HttpMessageConverter bean list
- Make it easier to add new Message Converters to AnnotationMethodHandlerAdapter [SPR-7504] #12161 Make it easier to add new Message Converters to AnnotationMethodHandlerAdapter
4 votes, 5 watchers
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement