spring mvc

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

  <bean name="/index.do" class="test.core.DefaultContainerController">
    <property name="viewName" value="welcome" />
    <property name="blocks">
      <list>
        <value>menu</value>
        <value>left</value>
        <value>welcomeContent</value>
      </list>
    </property>
  </bean>

  <bean id="menu" name="/menu.do" class="test.MenuController"></bean>
  <bean id="left" name="/left.do" class="test.LeftController"></bean>
  <bean id="welcomeContent" name="/welcomeContent.do" class="test.WelcomeController"></bean>

  <!-- common -->
  <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="prefix" value="/WEB-INF/jsp/" />
    <property name="suffix" value=".jsp" />
  </bean>

</beans>

你可能感兴趣的:(spring,mvc)