.runtime.wavemaker-app-runtime-prefab.11.8.4.ee.source-code.prefab-dispatcher-servlet.xml Maven / Gradle / Ivy
<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/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> <context:annotation-config/> <mvc:annotation-driven> <mvc:message-converters> <ref bean="wmCompositeHttpMessageConverter"/> <ref bean="stringHttpMessageConverter"/> <ref bean="mappingJackson2HttpMessageConverter"/> </mvc:message-converters> <mvc:argument-resolvers> <bean class="com.wavemaker.runtime.resolver.WMPageableHandlerMethodArgumentResolver" > <property name="pageParameterName" value="page"/> <property name="sizeParameterName" value="size"/> <property name="oneIndexedParameters" value="true"/> <property name="maxPageSize" value="100"/> </bean> </mvc:argument-resolvers> </mvc:annotation-driven> <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="wmObjectMapper"/> </bean> <bean id="wmCompositeHttpMessageConverter" class="com.wavemaker.runtime.converters.WMCompositeHttpMessageConverter"/> <bean id="wmObjectMapper" class="com.wavemaker.runtime.commons.WMObjectMapper"/> <bean id="handlerAdapter" class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter"/> <bean id="handlerExceptionResolver" class="com.wavemaker.runtime.exception.resolver.ApplicationRestServiceExceptionResolver"/> </beans>