-
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
Milestone
Description
Vijay Dendukuri opened SPR-8546 and commented
When "RequestResponseBodyMethodProcessor" is used to handle the return value (by annotating the method with @ResponseBody), the HttpMessageConverter is choosen based on request header "Accept".
Please provide an ability to also choose a HttpMessageConverter based on pathExtension (similar to ContentNegotiatingViewResolver).
The HtppMessageConverter is choosed in the following class now.
org.springframework.web.servlet.mvc.method.annotation.support.AbstractMessageConverterMethodProcessor
Method: writeWithMessageConverters
Affects: 3.0.5
Issue Links:
- @RequestMapping should support accept header and url extension [SPR-6497] #11163
@RequestMappingshould support accept header and url extension ("duplicates") - Content negotiation improvements [SPR-8410] #13057 Content negotiation improvements ("duplicates")
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