-
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)type: enhancementA general enhancementA general enhancement
Milestone
Description
Keith Donald opened SPR-7354 and commented
As a Spring MVC user, I would like the option to explicitly specify the media types a @Controller
can accept. If a client POSTs a request body that is not of one of those media types, the server should return the UNSUPPORTED_MEDIA_TYPE (415) status.
We should pursue semantic alignment with JAX-RS where possible. See http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/Consumes.html for a description of how JAX-RS supports this feature.
Affects: 3.0.3
Issue Links:
- Add equivalent of JAX-RS @Produces to Spring MVC [SPR-7353] #12012 Add equivalent of JAX-RS
@Produces
to Spring MVC
4 votes, 2 watchers
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement