java - Need to verify the older way of defining handler mappings using mvc:annotation-driven? -
In an app I see that I find it in Dispatcher xml:
& Lt; Mvc: annotation-operated / & gt; Do I correct that this is the Spring 3 method of defining handler mapping (URL routes). One of the controllers in the app looks like this: @controller @ request mailing ("/ command") @ session entry (command controller command) public class command controller {// ...
I think the line definition
@RequestMapping ("/ order")
is the actual definition of handler mapping For URL route
Do I correct that the old way of defining this handler mapping would be one of them:
-
BeanNameUrlHandlerMapping
< -
SimpleUrlHandlerMapping
Controller ClassnameHandler Mapping
CommonsPathMapHandlerMapping
Yes & lt; Mvc: annotation-driven / & gt;
is a feature option for configuring annotation-powered controllers that configures special handler mapping
s and handler adapter
s.
Look for a complete list of exactly to specify it. As an option,
, you can always specify default annotation handler mapping
, annotation mathheadler adapter
, manually beans.
Comments
Post a Comment