103 lines
4.6 KiB
XML
Raw Normal View History

<?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-06 21:35:54 -08:00
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
2012-06-20 13:28:45 -03:00
http://www.springframework.org/schema/context
2020-11-06 21:35:54 -08:00
http://www.springframework.org/schema/context/spring-context-4.2.xsd
2012-06-20 13:28:45 -03:00
http://www.springframework.org/schema/mvc
2020-11-06 21:35:54 -08:00
http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd">
<context:component-scan base-package="com.wisemapping.webmvc"/>
2012-06-20 13:28:45 -03:00
<context:annotation-config/>
<mvc:annotation-driven/>
<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>
<bean id="browserSupportInterceptor" class="com.wisemapping.filter.BrowserSupportInterceptor">
<property name="exclude">
<set>
<value>/</value>
<value>/index.jsp</value>
<value>/c/home</value>
<value>/c/j_spring_security</value>
<value>/c/login</value>
2012-06-21 22:18:04 -03:00
<value>/c/GCFInstall</value>
2012-06-21 20:16:13 -03:00
<value>/service/</value>
<value>/c/maps/*/embed</value>
<value>/c/maps/*/public</value>
<value>/c/embeddedView</value>
<value>/c/user/resetPassword</value>
<value>/c/user/registration</value>
</set>
</property>
</bean>
<bean id="userLocaleInterceptor" class="com.wisemapping.filter.UserLocaleInterceptor"/>
<bean id="requestInterceptor" class="com.wisemapping.filter.RequestPropertiesInterceptor"/>
2013-01-31 14:49:04 -03:00
<bean id="webContentInterceptor" class="org.springframework.web.servlet.mvc.WebContentInterceptor">
<property name="cacheSeconds" value="0"/>
<property name="useExpiresHeader" value="true"/>
<property name="useCacheControlHeader" value="true"/>
<property name="useCacheControlNoStore" value="true"/>
</bean>
2012-06-21 20:16:13 -03:00
</mvc:interceptors>
2012-06-20 13:28:45 -03:00
2012-06-17 02:51:01 -03:00
2012-06-20 13:28:45 -03:00
<bean id="exceptionHandlerResolver"
class="com.wisemapping.mail.NotifyingExceptionResolver">
2012-06-20 13:28:45 -03:00
<property name="defaultStatusCode" value="500"/>
<property name="defaultErrorView" value="unexpectedError"/>
<property name="exceptionMappings">
<props>
2012-06-20 13:28:45 -03:00
<prop key="com.wisemapping.exceptions.UnsupportedBrowserException">browserNotSupported</prop>
2012-06-21 22:18:04 -03:00
<prop key="com.wisemapping.exceptions.GoogleChromeFrameRequiredException">GCFPluginRequired</prop>
2012-06-20 13:28:45 -03:00
<!-- Security exceptions are wrapped in this exceptions -->
<prop key="java.lang.reflect.UndeclaredThrowableException">securityError</prop>
</props>
</property>
<property name="exclude">
<set>
<value>java.lang.reflect.UndeclaredThrowableException</value>
<value>com.wisemapping.exceptions.GoogleChromeFrameRequiredException</value>
<value>com.wisemapping.exceptions.UnsupportedBrowserException</value>
</set>
</property>
<property name="notificationService" ref="notificationService"/>
</bean>
2012-06-20 13:28:45 -03:00
<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView"/>
</bean>
<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
<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-06-20 13:28:45 -03:00
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- one of the properties available; the maximum file size in bytes -->
<property name="maxUploadSize" value="522240"/>
</bean>
2012-07-03 00:04:44 -03:00
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
2012-06-20 13:28:45 -03:00
<property name="basenames">
<list>
<value>messages</value>
</list>
</property>
</bean>
2012-08-16 18:28:09 -03:00
</beans>