=================
What is Spring MVC BeanNameUrlHandlerMapping
=================
This is the default mapping provided by spring. This is a bit similar to struts style. In this Spring MVC mapping , developer is allowed to specify URI and control for that url specifically. As shown below. WE have to specify mapping class first and then bean ids.
What is Spring MVC BeanNameUrlHandlerMapping
=================
This is the default mapping provided by spring. This is a bit similar to struts style. In this Spring MVC mapping , developer is allowed to specify URI and control for that url specifically. As shown below. WE have to specify mapping class first and then bean ids.
<beans ...> <bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping"/> <bean name="/welcome.htm" class="com.bunty.anil.controller.WelcomeController" /> <bean name="/college.htm" class="com.spring.bunty.controller.StudentController" /> <bean name="/x*.htm" class="a.b.c.controller.CommonController" /> </beans>
No comments:
Post a Comment