mapper: What kind of request is given to Action.
1} class:beannameurlhandlermapping to Master,
The programmer-defined The name property of the <bean> tag corresponding to the Action is used as the request path .
Springmvc.xml
<!--Controller (programmer) - <Beanname= "/hello.action"class= "Helloaction"></Bean> <!--Mapper (frame) - <Beanclass= "Org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping"></Bean>
2}class:simpleurlhandlermapping
Multiple paths correspond to the same action
/delete.action and /update.action and /find.action request paths are handed to <bean> an Action labeled ID , which is
multiple paths correspond to the same Action.
JSP<ahref= "${pagecontext.request.contextpath}/delete.action">Delete</a><P><ahref= "${pagecontext.request.contextpath}/find.action">Inquire</a><P>
Springmvc.xml
<!--control its device, ID is custom - <BeanID= "Helloaction"class= "Helloaction"></Bean> <!--Mapper - <Beanclass= "Org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> < Propertyname= "Mappings"> <Props> <!--map different paths to a class - <propKey= "/delete.action">Helloaction</prop> <propKey= "/find.action">Helloaction</prop> </Props> </ Property> </Bean>
[JBDJ] Springmvc FRAME (3) Mapper