44 lines
1.7 KiB
XML
44 lines
1.7 KiB
XML
<?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"
|
|
xmlns:cache="http://www.springframework.org/schema/cache"
|
|
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
|
|
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd">
|
|
|
|
|
|
<context:property-placeholder location="classpath*:**/dmp.properties" />
|
|
|
|
<mvc:resources mapping="resources/**" location="/resources/" />
|
|
<mvc:annotation-driven />
|
|
<context:component-scan base-package="login" />
|
|
|
|
<!-- <cache:annotation-driven /> -->
|
|
|
|
<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> |