Implementation of the
org.springframework.web.servlet.HandlerMapping interface that map from URLs to beans with names that start with a slash ("/"),
similar to how Struts maps URLs to action names.
This is the default implementation used by the
org.springframework.web.servlet.DispatcherServlet , but it is somewhat naive.
A
SimpleUrlHandlerMapping or a custom handler mapping should be used
by preference.
The mapping is from URL to bean name. Thus an incoming URL "/foo" would map
to a handler named "/foo", or to "/foo /foo2" in case of multiple mappings to
a single handler. Note: In XML definitions, you'll need to use an alias
name="/foo" in the bean definition, as the XML id may not contain slashes.
Supports direct matches (given "/test" -> registered "/test") and "*"
matches (given "/test" -> registered "/t*"). Note that the default is
to map within the current servlet mapping if applicable; see the
BeanNameUrlHandlerMapping.setAlwaysUseFullPath "alwaysUseFullPath" property for details.
For details on the pattern options, see the
org.springframework.util.AntPathMatcher javadoc.
author: Rod Johnson author: Juergen Hoeller See Also: SimpleUrlHandlerMapping |