spring.web.servlet-context.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of entando-engine Show documentation
Show all versions of entando-engine Show documentation
Entando Engine: an agile, modern and user-centric open source Portal platform.
<?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:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:security="http://www.springframework.org/schema/security" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <!-- scans for annotated classes --> <context:component-scan base-package="org.entando.entando.web.*,org.entando.entando.plugins.*.web.*" /> <context:annotation-config /> <mvc:annotation-driven conversion-service="conversionService" message-codes-resolver="messageCodesResolver"> <mvc:message-converters> <bean id="jacksonMessageConverter" name="jacksonMessageConverter" class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"> <property name="supportedMediaTypes"> <list> <value>application/json;charset=UTF-8</value> </list> </property> </bean> </mvc:message-converters> </mvc:annotation-driven> <mvc:resources mapping="/resources/**" location="/resources/" /> <util:map id="validationCodesMapping" map-class="java.util.HashMap"> <entry key="NotNull"> <value>51</value> </entry> <entry key="NotBlank"> <value>52</value> </entry> <entry key="NotEmpty"> <value>53</value> </entry> <entry key="Size"> <value>54</value> </entry> <entry key="Min"> <value>55</value> </entry> <entry key="Max"> <value>56</value> </entry> <entry key="ValidateString"> <value>57</value> </entry> <entry key="Pattern"> <value>58</value> </entry> </util:map> <bean id="messageCodesResolver" class="org.entando.entando.web.common.EntandoMessageCodesResolver"> <property name="validationErrorCodeMapping" ref="validationCodesMapping" /> </bean> <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="useCodeAsDefaultMessage" value="true" /> <property name="basename" value="rest/messages" /> <property name="fallbackToSystemLocale" value="true" /> </bean> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix"> <value>/WEB-INF/jsp/entando/</value> </property> <property name="suffix"> <value>.jsp</value> </property> </bean> <bean id="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean"> <property name="registerDefaultFormatters" value="false" /> <property name="formatters"> <set> <bean class="org.springframework.format.number.NumberFormatAnnotationFormatterFactory" /> </set> </property> <property name="formatterRegistrars"> <set> <bean class="org.springframework.format.datetime.joda.JodaTimeFormatterRegistrar"> <!-- consider also timeFormatter and dateTimeFormatter --> <property name="dateFormatter"> <bean class="org.springframework.format.datetime.joda.DateTimeFormatterFactoryBean"> <property name="pattern" value="dd/MM/yyyy" /> </bean> </property> </bean> </set> </property> </bean> <bean id="entandoInterceptor" class="org.entando.entando.web.common.interceptor.EntandoOauth2Interceptor" /> <bean id="activityStreamInterceptor" class="org.entando.entando.web.common.interceptor.ActivityStreamInterceptor" /> <mvc:interceptors> <ref bean="entandoInterceptor" /> <ref bean="activityStreamInterceptor" /> </mvc:interceptors> </beans>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy