contacts-servlet.xml 1.3 KB

123456789101112131415161718192021222324252627
  1. <beans xmlns="http://www.springframework.org/schema/beans"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns:p="http://www.springframework.org/schema/p"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xmlns:mvc="http://www.springframework.org/schema/mvc"
  6. xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
  7. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  8. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
  9. <!-- ========================== WEB DEFINITIONS ======================= -->
  10. <context:component-scan base-package="sample.contact"/>
  11. <context:annotation-config />
  12. <mvc:annotation-driven/>
  13. <mvc:view-controller path="/frames.htm" view-name="/frames"/>
  14. <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
  15. <property name="basename" value="messages"/>
  16. </bean>
  17. <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  18. <property name="prefix" value="/WEB-INF/jsp/"/>
  19. <property name="suffix" value=".jsp"/>
  20. </bean>
  21. </beans>