/webportal/src/main/webapp/WEB-INF/spring/mvc-config.xml
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 17 <!-- Configures the @Controller programming model --> 18 <mvc:annotation-driven /> 19 <task:annotation-driven /> 20 <!-- <context:load-time-weaver/> --> 21 22 <!-- beans for RestTemplate --> 23 <bean id="restTemplate" class="org.springframework.web.client.RestTemplate"> 24 <property name="messageConverters"> 25 <list> 26 <!-- <bean class="org.springframework.http.converter.xml.SourceHttpMessageConverter"/> --> 27 <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter"/> 28 </list> 29 </property> 30 </bean> 31</beans>