/webportal/src/main/webapp/WEB-INF/spring/mvc-config.xml

http://alageospatialportal.googlecode.com/ · XML · 31 lines · 25 code · 2 blank · 4 comment · 0 complexity · 47dfddd2564ad77a8d9bc44bf86a342c MD5 · raw file

  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:mvc="http://www.springframework.org/schema/mvc"
  6. xmlns:task="http://www.springframework.org/schema/task"
  7. xmlns:context="http://www.springframework.org/schema/context"
  8. xsi:schemaLocation="
  9. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  10. http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
  11. http://www.springframework.org/schema/task
  12. http://www.springframework.org/schema/task/spring-task-3.0.xsd
  13. http://www.springframework.org/schema/context
  14. http://www.springframework.org/schema/context/spring-context-3.0.xsd"
  15. >
  16. <!-- Configures the @Controller programming model -->
  17. <mvc:annotation-driven />
  18. <task:annotation-driven />
  19. <!-- <context:load-time-weaver/> -->
  20. <!-- beans for RestTemplate -->
  21. <bean id="restTemplate" class="org.springframework.web.client.RestTemplate">
  22. <property name="messageConverters">
  23. <list>
  24. <!-- <bean class="org.springframework.http.converter.xml.SourceHttpMessageConverter"/> -->
  25. <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter"/>
  26. </list>
  27. </property>
  28. </bean>
  29. </beans>