org.springframework.web.servlet.HandlerMapping
interface that maps 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., along with
org..
Alternatively, SimpleUrlHandlerMapping allows for customizing a
handler mapping declaratively.
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.
Supports direct matches (given "/test" -> registered "/test") and "*"
matches (given "/test" -> registered "/t*"). For details on the pattern
options, see the org.
javadoc.
SimpleUrlHandlerMapping
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String[] | determineUrlsForHandler(String
the name of the candidate bean beanName)Implements abstract org. Checks name and aliases of the given bean for URLs, starting with "/". |
| BeanNameUrlHandlerMapping | back to summary |
|---|---|
| public BeanNameUrlHandlerMapping() | |
| determineUrlsForHandler | back to summary |
|---|---|
| protected String[] determineUrlsForHandler(String beanName) Implements abstract org. Checks name and aliases of the given bean for URLs, starting with "/".
| |