.runtime.wavemaker-app-runtime-core.11.8.3.source-code.springapp-mvc.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd"> <mvc:annotation-driven content-negotiation-manager="contentNegotiationManager" conversion-service="applicationConversionService"> <mvc:message-converters> <ref bean="wmCompositeHttpMessageConverter"/> <ref bean="stringHttpMessageConverter"/> <ref bean="mappingJackson2HttpMessageConverter"/> </mvc:message-converters> <mvc:argument-resolvers> <ref bean="appDefaultPageableHandlerMethodArgumentResolver"/> </mvc:argument-resolvers> <mvc:path-matching suffix-pattern="false" trailing-slash="false"/> </mvc:annotation-driven> <mvc:interceptors> <ref bean="annotationInterceptor"/> </mvc:interceptors> <bean id="annotationInterceptor" class="com.wavemaker.runtime.web.interceptor.WMAppRequestInterceptor"/> <bean id="stringHttpMessageConverter" class="org.springframework.http.converter.StringHttpMessageConverter"> <constructor-arg value="UTF-8"/> <property name="supportedMediaTypes" value="text/plain;charset=UTF-8"/> <property name="writeAcceptCharset" value="false"/> </bean> <bean id="mappingJackson2HttpMessageConverter" class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"> <property name="objectMapper" ref="wmAppObjectMapper"/> </bean> <bean id="wmAppObjectMapper" class="com.wavemaker.runtime.commons.WMAppObjectMapper" factory-method="getInstance"/> <bean id="wmCompositeHttpMessageConverter" class="com.wavemaker.runtime.converters.WMCompositeHttpMessageConverter"/> <bean id="appDefaultPageableHandlerMethodArgumentResolver" class="com.wavemaker.runtime.resolver.ServiceBasedPageableHandlerMethodArgumentResolver"> <property name="pageParameterName" value="page"/> <property name="sizeParameterName" value="size"/> <property name="oneIndexedParameters" value="true"/> <property name="maxPageSize" value="1000"/> </bean> </beans>