controllers.xml
Home
/
sm-shop /
src /
main /
webapp /
WEB-INF /
spring /
appServlet /
controllers.xml
<?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:mvc="http://www.springframework.org/schema/mvc"
xmlns:task="http://www.springframework.org/schema/task"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.1.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">
<context:annotation-config />
<context:component-scan base-package="com.salesmanager.web" />
<context:component-scan base-package="com.salesmanager.core.business" />
<context:component-scan base-package="com.salesmanager.core.utils" />
<!-- Async -->
<bean id="executorService" class="java.util.concurrent.Executors"
factory-method="newFixedThreadPool">
<constructor-arg value="10" />
</bean>
<task:executor id="threadPoolTaskExecutor" pool-size="10" />
<task:annotation-driven executor="executorService" />
<!-- Spring 3.2 content negociation 406 error issue (NOT WORKING) -->
<!--
<mvc:annotation-driven content-negotiation-manager="contentNegotiationManager"/>
<bean id="contentNegotiationManager" class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean">
<property name="favorPathExtension" value="false" />
<property name="mediaTypes" >
<value>
json=application/json
</value>
</property>
</bean>
-->
<!-- Maps '/' requests to the 'home' view -->
<mvc:view-controller path="/" view-name="shop"/>
<mvc:interceptors>
<!-- Changes the locale when a 'locale' request parameter is sent; e.g. /?locale=de -->
<bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"/>
<mvc:interceptor>
<mvc:mapping path="/shop/**"/>
<bean class="com.salesmanager.web.filter.StoreFilter"/>
</mvc:interceptor>
<mvc:interceptor>
<mvc:mapping path="/customer/**"/>
<bean class="com.salesmanager.web.filter.StoreFilter"/>
</mvc:interceptor>
<mvc:interceptor>
<mvc:mapping path="/admin/**"/>
<bean class="com.salesmanager.web.filter.AdminFilter" />
</mvc:interceptor>
</mvc:interceptors>
</beans>