123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:cache="http://www.springframework.org/schema/cache"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:mvc="http://www.springframework.org/schema/mvc"
- 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/aop
- http://www.springframework.org/schema/aop/spring-aop.xsd
- http://www.springframework.org/schema/tx
- http://www.springframework.org/schema/tx/spring-tx.xsd
- http://www.springframework.org/schema/cache
- http://www.springframework.org/schema/cache/spring-cache.xsd
- http://www.springframework.org/schema/mvc
- http://www.springframework.org/schema/mvc/spring-mvc.xsd">
- <context:annotation-config />
- <context:component-scan base-package="com.sp.bore.logic"></context:component-scan>
-
- <mvc:default-servlet-handler />
- <mvc:resources mapping="/file/**" location="file:${upload.fileRoot}" />
-
- <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean" >
- <property name="providerClass" value="org.hibernate.validator.HibernateValidator" />
- </bean>
- <mvc:annotation-driven enable-matrix-variables="true" conversion-service="conversionService" validator="validator">
- <mvc:argument-resolvers>
- <bean class="com.sp.core.auth.spring.resolver.CurrentUserMethodArgumentResolver"/>
- <bean class="com.sp.core.auth.spring.resolver.CurrentUserAgentMethodArgumentResolver"/>
- </mvc:argument-resolvers>
- </mvc:annotation-driven>
- <bean id="conversionService" class="org.springframework.context.support.ConversionServiceFactoryBean">
- <property name="converters">
- <set>
- <bean class="com.sp.plugin.param.ienum.EnumConverterFactory">
- <property name="basePackage" value="com.sp" />
- </bean>
- </set>
- </property>
- </bean>
-
- <aop:aspectj-autoproxy proxy-target-class="true" />
-
- <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
- <property name="defaultEncoding" value="UTF-8" />
- <property name="maxUploadSize" value="5242880" />
- </bean>
-
- <mvc:interceptors>
- <mvc:interceptor>
- <mvc:mapping path="/**" />
- <mvc:exclude-mapping path="/brl/**"/>
- <mvc:exclude-mapping path="/favicon.ico"/>
- <mvc:exclude-mapping path="/apidoc/**"/>
- <mvc:exclude-mapping path="/v2/api-docs"/>
- <mvc:exclude-mapping path="/file/**"/>
- <mvc:exclude-mapping path="/bore/upload/**"/>
- <mvc:exclude-mapping path="/bore/order/**"/>
- <mvc:exclude-mapping path="/weimob/**"/>
- <mvc:exclude-mapping path="/outter/**"/>
- <mvc:exclude-mapping path="/h5/**"/>
- <mvc:exclude-mapping path="/api/**"/>
- <mvc:exclude-mapping path="/MP_**"/>
- <bean class="com.sp.core.spring.interceptor.SignatureInterceptor">
- <property name="signName" value="${signature.signName}" />
- <property name="timestampName" value="${signature.timestampName}" />
- <property name="signKey" value="${signature.signKey}" />
- </bean>
- </mvc:interceptor>
- <mvc:interceptor>
- <mvc:mapping path="/**"/>
- <mvc:exclude-mapping path="/brl/**"/>
- <mvc:exclude-mapping path="/favicon.ico"/>
- <mvc:exclude-mapping path="/apidoc/**"/>
- <mvc:exclude-mapping path="/v2/api-docs"/>
- <mvc:exclude-mapping path="/file/**"/>
- <mvc:exclude-mapping path="/bore/order/**"/>
- <mvc:exclude-mapping path="/weimob/**"/>
- <mvc:exclude-mapping path="/outter/**"/>
- <mvc:exclude-mapping path="/api/**"/>
- <mvc:exclude-mapping path="/MP_**"/>
- <bean class="com.sp.core.auth.spring.interceptor.AuthInterceptor" />
- </mvc:interceptor>
- </mvc:interceptors>
-
- <bean class="com.sp.core.spring.interceptor.ExceptionHandler" />
-
- <bean id="tokenManager" class="com.sp.core.auth.MemTokenManager" />
-
- <import resource="classpath:spring-core.xml"/>
- </beans>
|