2017-09-14 12:37:36 +02:00
|
|
|
<?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:mvc="http://www.springframework.org/schema/mvc"
|
|
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/mvc
|
|
|
|
http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd
|
|
|
|
http://www.springframework.org/schema/context
|
|
|
|
http://www.springframework.org/schema/context/spring-context-4.1.xsd
|
|
|
|
http://www.springframework.org/schema/beans
|
|
|
|
http://www.springframework.org/schema/beans/spring-beans-4.1.xsd">
|
|
|
|
|
|
|
|
|
2017-09-29 14:13:21 +02:00
|
|
|
<context:property-placeholder location="classpath*:**/dmp.properties" />
|
|
|
|
|
2017-09-14 12:37:36 +02:00
|
|
|
<mvc:resources mapping="resources/**" location="/resources/" />
|
|
|
|
<mvc:annotation-driven />
|
|
|
|
<context:component-scan base-package="rest" />
|
|
|
|
|
2017-09-29 14:13:21 +02:00
|
|
|
<bean id="proxy" class="rest.Proxy">
|
|
|
|
<constructor-arg type = "String" value = "${proxy.allowed.host}"/>
|
|
|
|
</bean>
|
|
|
|
|
2017-09-14 12:37:36 +02:00
|
|
|
<bean
|
|
|
|
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
|
|
|
<property name="prefix" value="/views/" />
|
|
|
|
<property name="suffix" value=".jsp" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="multipartResolver"
|
|
|
|
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
|
|
|
|
<property name="maxUploadSize" value="100000000" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="jsonConverter"
|
|
|
|
class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
|
|
|
|
<property name="prefixJson" value="false" />
|
|
|
|
<property name="supportedMediaTypes" value="application/json" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean
|
|
|
|
class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
|
|
|
|
<property name="messageConverters">
|
|
|
|
<list>
|
|
|
|
<ref bean="jsonConverter" />
|
|
|
|
</list>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
</beans>
|