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

Update documentation with example of single ApplicationContext per webapp [SPR-11703] #16325

Closed
spring-projects-issues opened this issue Apr 17, 2014 · 1 comment
Assignees
Labels
type: documentation
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Apr 17, 2014

Oleksandr Gavenko opened SPR-11703 and commented

If read docs there are no info about where allowed to put mvc:annotation-driven annotation (in application context config vs servlet context).

There are some question on StackOverflow and Spring Forum about this.

http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd

http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd

have text: Configures the annotation-driven Spring MVC Controller programming model. Note that, with Spring 3.0, this tag works in Servlet MVC only!

And for String 3.2.5 - @RequestHandler is not mapped if mvc:annotation-driven put to servlet context config . But I look to latest petclinic:

https://github.com/spring-projects/spring-petclinic/blob/master/src/main/resources/spring/mvc-core-config.xml

https://github.com/spring-projects/spring-petclinic/blob/master/src/main/webapp/WEB-INF/web.xml

and seems that mvc:annotation-driven now allowed in servlet context!

So as minimum comment in http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd should be fixed.

And as maximum this behavior should be documented in http://docs.spring.io/spring/docs/4.0.3.RELEASE/spring-framework-reference/htmlsingle/#mvc-config-enable


Affects: 4.0.3

Issue Links:

  • #11483 Portlet MVC - <mvc:annotation-driven /> doesn't inject conversion service and validator in WebDataBinder

Referenced from: commits 59a050f, 80cb0c4

0 votes, 7 watchers

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Apr 29, 2014

Sébastien Deleuze commented

<mvc:annotation-driven /> xsd documentation has been updated, as well as reference documentation to provide more guidance about where this element should be located.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation
Projects
None yet
Development

No branches or pull requests

2 participants