What does do?

The mvc:annotationDriven tag essentially sets you your Spring context to allow for dispatching requests to Controllers.

The tag will configure two beans DefaultAnnotationHandlerMapping and AnnotationMethodHandlerAdapter.

You can find more information from the spring documents:

http://static.springsource.org/spring/docs/current/spring-framework-reference/html/mvc.html

Leave a Comment