1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
| <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/>
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="interceptors">
<list>
<bean class="interceptor.Intercptor" />
</list>
</property>
<property name="mappings">
<props>
<prop key="menu.do">menuController</prop>
<prop key="menulogin.do">menuLoginController</prop>
<prop key="left.do">leftController</prop>
<prop key="footer.do">footerController</prop>
<prop key="index.html">homeController</prop>
<prop key="products.html">productsController</prop>
</props>
</property>
</bean>
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver"
p:prefix="/WEB-INF/jsp/"
p:suffix=".jsp" />
<!--
The index controller.
-->
<bean name="menuController"
class="controller.MenuController" />
<bean name="menuLoginController"
class="controller.MenuLoginController" />
<bean name="leftController"
class="controller.LeftController" />
<bean name="footerController"
class="controller.FooterController" />
<bean name="homeController"
class="controller.HomeController" />
<bean name="productsController"
class="controller.ProductsController" />
</beans> |