2012-02-12 02:55:42 -03:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2012-07-12 20:59:01 -03:00
|
|
|
<!--suppress SpringModelInspection -->
|
2012-02-12 02:55:42 -03:00
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
2012-02-16 01:16:51 -03:00
|
|
|
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
2012-02-12 02:55:42 -03:00
|
|
|
xsi:schemaLocation="
|
|
|
|
http://www.springframework.org/schema/beans
|
2020-11-07 11:56:38 -08:00
|
|
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
2012-02-16 01:16:51 -03:00
|
|
|
http://www.springframework.org/schema/context
|
2020-11-07 11:56:38 -08:00
|
|
|
http://www.springframework.org/schema/context/spring-context.xsd
|
2012-02-16 01:16:51 -03:00
|
|
|
http://www.springframework.org/schema/mvc
|
2020-11-07 11:56:38 -08:00
|
|
|
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
|
2012-02-16 01:16:51 -03:00
|
|
|
|
|
|
|
<context:component-scan base-package="com.wisemapping.rest"/>
|
|
|
|
<context:annotation-config/>
|
2013-02-10 15:24:37 -03:00
|
|
|
|
2012-09-10 23:51:53 -03:00
|
|
|
<mvc:annotation-driven>
|
|
|
|
<mvc:message-converters>
|
|
|
|
<bean class="com.wisemapping.rest.DebugMappingJacksonHttpMessageConverter"/>
|
|
|
|
<bean class="org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter"/>
|
|
|
|
</mvc:message-converters>
|
|
|
|
</mvc:annotation-driven>
|
2012-02-12 02:55:42 -03:00
|
|
|
|
2020-11-06 21:35:54 -08:00
|
|
|
<bean id="contentNegotiationManager" class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean">
|
|
|
|
<property name="favorParameter" value="true"/>
|
|
|
|
<property name="parameterName" value="mediaType"/>
|
|
|
|
<property name="defaultContentType" value="application/json" />
|
|
|
|
|
2012-02-12 02:55:42 -03:00
|
|
|
<property name="mediaTypes">
|
|
|
|
<map>
|
2012-02-20 14:42:07 -03:00
|
|
|
<entry key="xml" value="application/xml"/>
|
2012-02-12 21:57:11 -03:00
|
|
|
<entry key="json" value="application/json"/>
|
2012-02-12 02:55:42 -03:00
|
|
|
</map>
|
|
|
|
</property>
|
2020-11-06 21:35:54 -08:00
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
|
|
|
|
<property name="contentNegotiationManager" ref="contentNegotiationManager"/>
|
2014-01-25 03:13:51 -03:00
|
|
|
<property name="viewResolvers">
|
|
|
|
<list>
|
|
|
|
<bean class="org.springframework.web.servlet.view.BeanNameViewResolver"/>
|
|
|
|
</list>
|
|
|
|
</property>
|
2012-02-16 01:16:51 -03:00
|
|
|
<property name="defaultViews">
|
2012-02-12 21:57:11 -03:00
|
|
|
<list>
|
2020-11-06 21:35:54 -08:00
|
|
|
<bean class="org.springframework.web.servlet.view.json.MappingJackson2JsonView">
|
2012-03-12 10:48:54 -03:00
|
|
|
<property name="extractValueFromSingleKeyModel" value="true"/>
|
|
|
|
</bean>
|
2012-02-12 21:57:11 -03:00
|
|
|
</list>
|
|
|
|
</property>
|
|
|
|
</bean>
|
2022-01-03 17:39:11 -08:00
|
|
|
|
2012-04-07 12:45:35 -03:00
|
|
|
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
|
|
|
|
<property name="basenames">
|
|
|
|
<list>
|
|
|
|
<value>messages</value>
|
|
|
|
</list>
|
|
|
|
</property>
|
|
|
|
</bean>
|
2014-01-16 20:09:22 -03:00
|
|
|
<!-- Configuration Bean -->
|
|
|
|
<context:property-placeholder location="/WEB-INF/app.properties" ignore-unresolvable="true"/>
|
2012-02-12 02:55:42 -03:00
|
|
|
</beans>
|