2012-02-12 02:55:42 -03:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2012-06-20 13:28:45 -03:00
|
|
|
<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:mvc="http://www.springframework.org/schema/mvc"
|
|
|
|
xsi:schemaLocation="
|
|
|
|
http://www.springframework.org/schema/beans
|
2020-11-07 11:56:38 -08:00
|
|
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
2012-06-20 13:28:45 -03:00
|
|
|
http://www.springframework.org/schema/context
|
2020-11-07 11:56:38 -08:00
|
|
|
http://www.springframework.org/schema/context/spring-context.xsd
|
2012-06-20 13:28:45 -03:00
|
|
|
http://www.springframework.org/schema/mvc
|
2020-11-07 11:56:38 -08:00
|
|
|
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
|
2012-02-12 02:55:42 -03:00
|
|
|
|
2012-11-10 17:19:28 -03:00
|
|
|
<context:component-scan base-package="com.wisemapping.webmvc"/>
|
2012-06-20 13:28:45 -03:00
|
|
|
<context:annotation-config/>
|
|
|
|
<mvc:annotation-driven/>
|
2012-11-04 18:17:32 -03:00
|
|
|
<context:property-placeholder location="/WEB-INF/app.properties" ignore-unresolvable="true"/>
|
2012-07-03 00:04:44 -03:00
|
|
|
|
2012-06-21 20:16:13 -03:00
|
|
|
<!-- Interceptors Registration -->
|
|
|
|
<mvc:interceptors>
|
2012-11-04 18:17:32 -03:00
|
|
|
<bean id="userLocaleInterceptor" class="com.wisemapping.filter.UserLocaleInterceptor"/>
|
|
|
|
<bean id="requestInterceptor" class="com.wisemapping.filter.RequestPropertiesInterceptor"/>
|
2012-06-21 20:16:13 -03:00
|
|
|
</mvc:interceptors>
|
2012-06-20 13:28:45 -03:00
|
|
|
|
2022-03-15 10:30:18 -03:00
|
|
|
<bean id="simpleMappingExceptionResolver"
|
|
|
|
class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
|
2012-06-20 13:28:45 -03:00
|
|
|
<property name="defaultStatusCode" value="500"/>
|
|
|
|
<property name="defaultErrorView" value="unexpectedError"/>
|
2022-03-15 10:30:18 -03:00
|
|
|
<property name="warnLogCategory" value="com.wisemapping.mvc.Exceptions"/>
|
|
|
|
|
2012-06-20 13:28:45 -03:00
|
|
|
<property name="exceptionMappings">
|
2012-02-12 02:55:42 -03:00
|
|
|
<props>
|
2022-03-15 10:30:18 -03:00
|
|
|
<!-- Security access exceptions must not handled as unexpected errors -->
|
|
|
|
<prop key="com.wisemapping.exceptions.MapNonPublicException">securityError</prop>
|
2022-03-14 23:33:16 -03:00
|
|
|
<prop key="com.wisemapping.exceptions.AccessDeniedSecurityException">securityError</prop>
|
2012-02-12 02:55:42 -03:00
|
|
|
</props>
|
|
|
|
</property>
|
2021-12-24 18:03:23 -08:00
|
|
|
|
|
|
|
<property name="statusCodes">
|
|
|
|
<props>
|
2022-03-15 10:30:18 -03:00
|
|
|
<prop key="securityError">403</prop>
|
2021-12-24 18:03:23 -08:00
|
|
|
</props>
|
|
|
|
</property>
|
2012-02-12 02:55:42 -03:00
|
|
|
</bean>
|
|
|
|
|
2012-06-20 13:28:45 -03:00
|
|
|
<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
|
2020-11-07 11:56:38 -08:00
|
|
|
<property name="viewClass" value="org.springframework.web.servlet.view.tiles3.TilesView"/>
|
2012-06-20 13:28:45 -03:00
|
|
|
</bean>
|
|
|
|
|
2020-11-07 14:42:00 -08:00
|
|
|
<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
|
2012-06-20 13:28:45 -03:00
|
|
|
<property name="definitions">
|
|
|
|
<list>
|
|
|
|
<value>/WEB-INF/defs/definitions.xml</value>
|
|
|
|
</list>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="localeResolver"
|
2012-08-16 18:28:09 -03:00
|
|
|
class="org.springframework.web.servlet.i18n.SessionLocaleResolver">
|
|
|
|
</bean>
|
2012-02-12 02:55:42 -03:00
|
|
|
|
2012-07-03 00:04:44 -03:00
|
|
|
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
|
2022-04-11 14:36:28 -03:00
|
|
|
<property name="defaultEncoding" value="UTF-8"/>
|
2012-06-20 13:28:45 -03:00
|
|
|
<property name="basenames">
|
|
|
|
<list>
|
|
|
|
<value>messages</value>
|
|
|
|
</list>
|
|
|
|
</property>
|
2012-02-12 02:55:42 -03:00
|
|
|
</bean>
|
2012-08-16 18:28:09 -03:00
|
|
|
</beans>
|