-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importIssues migrated from JIRA with more than 10 votes at the time of importin: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Arjen Poutsma opened SPR-6702 and commented
It would be useful to override the default content-type written by the HttpMessageConverters in the @ResponseBody annotation. Something like:
@ResponseBody("foo/bar")
public String myHandlerMethod() {
return "myFooBar";
}
Issue Links:
- @ResponseBody overwrites ContentType [SPR-6559] #11225
@ResponseBodyoverwrites ContentType - Add equivalent of JAX-RS @Produces to Spring MVC [SPR-7353] #12012 Add equivalent of JAX-RS
@Producesto Spring MVC ("is superseded by")
10 votes, 15 watchers
Metadata
Metadata
Assignees
Labels
has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importIssues migrated from JIRA with more than 10 votes at the time of importin: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement