/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
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:p="http://www.springframework.org/schema/p"
- xmlns:mvc="http://www.springframework.org/schema/mvc"
- xmlns:task="http://www.springframework.org/schema/task"
- xmlns:context="http://www.springframework.org/schema/context"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
- http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
- http://www.springframework.org/schema/task
- http://www.springframework.org/schema/task/spring-task-3.0.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-3.0.xsd"
- >
- <!-- Configures the @Controller programming model -->
- <mvc:annotation-driven />
- <task:annotation-driven />
- <!-- <context:load-time-weaver/> -->
- <!-- beans for RestTemplate -->
- <bean id="restTemplate" class="org.springframework.web.client.RestTemplate">
- <property name="messageConverters">
- <list>
- <!-- <bean class="org.springframework.http.converter.xml.SourceHttpMessageConverter"/> -->
- <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter"/>
- </list>
- </property>
- </bean>
- </beans>