Guest User

Untitled

a guest
Aug 16th, 2013
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.12 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3.       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.       xmlns:p="http://www.springframework.org/schema/p"
  5.       xmlns:aop="http://www.springframework.org/schema/aop"
  6.       xmlns:context="http://www.springframework.org/schema/context"
  7.       xmlns:tx="http://www.springframework.org/schema/tx"
  8.       xmlns:mvc="http://www.springframework.org/schema/mvc"
  9.       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
  10.       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
  11.       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
  12.       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
  13.       http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">
  14.    
  15.     <context:component-scan base-package="br.gov.rj.pge.lawsuit.controller.submissioncontroller" />
  16.  
  17.     <bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/>
  18.  
  19.     <!--
  20.    Most controllers will use the ControllerClassNameHandlerMapping above, but
  21.    for the index controller we are using ParameterizableViewController, so we must
  22.    define an explicit mapping for it.
  23.    -->
  24.     <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
  25.         <property name="mappings">
  26.             <props>
  27.                 <prop key="index.html">indexController</prop>
  28.             </props>
  29.         </property>
  30.     </bean>
  31.  
  32.     <bean id="viewResolver"
  33.          class="org.springframework.web.servlet.view.InternalResourceViewResolver"
  34.          p:prefix="/WEB-INF/jsp/"
  35.          p:suffix=".jsp" />
  36.  
  37.     <!--
  38.    The index controller.
  39.    -->
  40.     <bean name="indexController"
  41.          class="org.springframework.web.servlet.mvc.ParameterizableViewController"
  42.          p:viewName="index" />
  43.  
  44. </beans>
Advertisement
Add Comment
Please, Sign In to add comment