Advertisement
msangel

spring context file

Mar 22nd, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.80 KB | None | 0 0
  1. <beans xmlns="http://www.springframework.org/schema/beans"
  2.     xmlns:context="http://www.springframework.org/schema/context"
  3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.     xsi:schemaLocation="
  5.        http://www.springframework.org/schema/beans    
  6.        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  7.        http://www.springframework.org/schema/context
  8.        http://www.springframework.org/schema/context/spring-context-3.0.xsd">
  9.  
  10.     <context:component-scan base-package="net.sinistersky.learn.webapp.tmpl.controllers" />
  11.  
  12.     <bean
  13.         class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  14.         <property name="prefix">
  15.             <value>/WEB-INF/pages/</value>
  16.         </property>
  17.         <property name="suffix">
  18.             <value>.jsp</value>
  19.         </property>
  20.     </bean>
  21.  
  22. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement