gae-servlet.xml 1.2 KB

12345678910111213141516171819202122232425
  1. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xmlns:context="http://www.springframework.org/schema/context"
  3. xmlns:mvc="http://www.springframework.org/schema/mvc"
  4. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  5. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
  6. http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
  7. <!-- Enables JSR-303 -->
  8. <mvc:annotation-driven/>
  9. <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean" />
  10. <context:component-scan base-package="samples.gae"/>
  11. <context:annotation-config />
  12. <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
  13. <property name="basename" value="messages"/>
  14. </bean>
  15. <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  16. <property name="prefix" value="/WEB-INF/jsp/"/>
  17. <property name="suffix" value=".jsp"/>
  18. </bean>
  19. </beans>