Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add equivalent of JAX-RS @Produces to Spring MVC [SPR-7353] #12012

Closed
spring-issuemaster opened this issue Jul 6, 2010 · 0 comments
Closed

Add equivalent of JAX-RS @Produces to Spring MVC [SPR-7353] #12012

spring-issuemaster opened this issue Jul 6, 2010 · 0 comments
Assignees
Milestone

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Jul 6, 2010

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:

  • #12004 HTTP 405 (Method not supported) returned when 404 Status (Not Found) was expected
  • #12013 Add equivalent of JAX-RS @Consumes to Spring MVC
  • #11937 @ResponseBody usage limitations
  • #11368 Explicitly set response Content-Type in @ResponseBody ("supersedes")

Referenced from: commits ad2e0d4, c5833b1, bb2cc84, 5fa7f24, 100fed4

3 votes, 2 watchers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.