|
|
@@ -3,34 +3,34 @@
|
|
|
xmlns:task="http://www.springframework.org/schema/task" xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
|
|
|
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/context
|
|
|
- http://www.springframework.org/schema/context/spring-context-4.0.xsd
|
|
|
+ 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-4.0.xsd
|
|
|
http://www.springframework.org/schema/task
|
|
|
http://www.springframework.org/schema/task/spring-task-4.0.xsd
|
|
|
- http://www.springframework.org/schema/mvc
|
|
|
+ http://www.springframework.org/schema/mvc
|
|
|
http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
|
|
|
http://www.springframework.org/schema/websocket
|
|
|
http://www.springframework.org/schema/websocket/spring-websocket.xsd">
|
|
|
|
|
|
<!-- Scan controller -->
|
|
|
-
|
|
|
+
|
|
|
<context:component-scan
|
|
|
- base-package="com.goafanti.*.controller;com.goafanti.*.*.controller;com.goafanti.common.task;com.goafanti.common.utils;
|
|
|
+ base-package="com.goafanti.*.controller;com.goafanti.common.task;com.goafanti.common.utils;
|
|
|
com.goafanti.core.websocket" />
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
<bean name="springContextUtils" class="com.goafanti.common.utils.SpringContextUtils" scope="singleton"></bean>
|
|
|
-
|
|
|
+
|
|
|
<bean id="passwordUtil" class="com.goafanti.common.utils.PasswordUtil">
|
|
|
- <property name="algorithmName" value="${pwd.hash_algorithm_name}"/>
|
|
|
- <property name="hashIterations" value="${pwd.hash_iterations}"/>
|
|
|
+ <property name="algorithmName" value="${pwd.hash_algorithm_name}"/>
|
|
|
+ <property name="hashIterations" value="${pwd.hash_iterations}"/>
|
|
|
</bean>
|
|
|
-
|
|
|
+
|
|
|
<!-- spring bean validator -->
|
|
|
<bean id="validator"
|
|
|
class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean">
|
|
|
@@ -58,15 +58,15 @@
|
|
|
</bean>
|
|
|
|
|
|
|
|
|
- <!-- Handles HTTP GET requests for /assets/** by efficiently serving up
|
|
|
+ <!-- Handles HTTP GET requests for /assets/** by efficiently serving up
|
|
|
static resources in the ${webappRoot}/assets directory -->
|
|
|
<mvc:resources mapping="/static/images/**" location="/WEB-INF/images/" />
|
|
|
<mvc:resources mapping="/static/html/**" location="/WEB-INF/html/" />
|
|
|
<mvc:resources mapping="/static/**" location="/WEB-INF/build/" />
|
|
|
<mvc:resources mapping="/favicon.ico" location="/WEB-INF/assets/favicon.ico" />
|
|
|
<mvc:resources mapping="/robots.txt" location="/WEB-INF/assets/robots.txt" />
|
|
|
-
|
|
|
- <bean id="templateResolver"
|
|
|
+
|
|
|
+ <bean id="templateResolver"
|
|
|
class="org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver">
|
|
|
<property name="prefix" value="/WEB-INF/views/" />
|
|
|
<property name="suffix" value=".html" />
|
|
|
@@ -79,13 +79,13 @@
|
|
|
<bean id="templateEngine" class="org.thymeleaf.spring4.SpringTemplateEngine">
|
|
|
<property name="templateResolver" ref="templateResolver" />
|
|
|
</bean>
|
|
|
-
|
|
|
+
|
|
|
<!-- Simple strategy: only path extension is taken into account -->
|
|
|
<bean id="cnManager" class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean">
|
|
|
<property name="favorPathExtension" value="true"/>
|
|
|
<property name="ignoreAcceptHeader" value="true"/>
|
|
|
<property name="defaultContentType" value="text/html"/>
|
|
|
-
|
|
|
+
|
|
|
<property name="mediaTypes">
|
|
|
<map>
|
|
|
<entry key="html" value="text/html" />
|
|
|
@@ -94,7 +94,7 @@
|
|
|
</map>
|
|
|
</property>
|
|
|
</bean>
|
|
|
-
|
|
|
+
|
|
|
<bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
|
|
|
<property name="contentNegotiationManager" ref="cnManager"/>
|
|
|
<property name="viewResolvers">
|
|
|
@@ -151,8 +151,8 @@
|
|
|
<bean id="shiroFilterUtils" class="com.goafanti.core.shiro.filter.ShiroFilterUtils" scope="singleton">
|
|
|
<property name="appName" value="${app.name}" />
|
|
|
</bean>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-</beans>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</beans>
|