Add equivalent of JAX-RS @Produces to Spring MVC [SPR-7353] #12012
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Keith Donald opened SPR-7353 and commented
As a Spring MVC user, I would like the option to explicitly specify the media types a
@Controller
can produce. If a client does not accept at least one of those media types, the server should return the NOT_ACCEPTABLE (406) status.We should pursue semantic alignment with JAX-RS where possible. See http://jackson.codehaus.org/javadoc/jax-rs/1.0/javax/ws/rs/Produces.html for a description of how JAX-RS supports this feature.
Affects: 3.0.3
Issue Links:
@Consumes
to Spring MVC@ResponseBody
usage limitations@ResponseBody
("supersedes")Referenced from: commits ad2e0d4, c5833b1, bb2cc84, 5fa7f24, 100fed4
3 votes, 2 watchers
The text was updated successfully, but these errors were encountered: