Skip to content

Content-type filtering in @RequestMapping [SPR-5623] #10294

Closed
@spring-projects-issues

Description

@spring-projects-issues

Arjen Poutsma opened SPR-5623 and commented

It would be useful to customize the view resolution/content negotiation in the @RequestMapping annotation, by picking a response content-type there. Something like:

@RequestMapping(value = "/hotels", contentType="application/pdf")

This contentType would directly influence the View that is picked by the ViewResolver.


Issue Links:

3 votes, 3 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions