123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <?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:p="http://www.springframework.org/schema/p"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:task="http://www.springframework.org/schema/task"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-4.0.xsd
- http://www.springframework.org/schema/tx
- http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
- http://www.springframework.org/schema/aop
- http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
- http://www.springframework.org/schema/mvc
- http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd">
- <mvc:annotation-driven />
- <!-- 静态资源文件访问 -->
- <mvc:default-servlet-handler />
-
- <context:component-scan
- base-package="cn.com.countrygarden.bi" />
-
- <aop:aspectj-autoproxy proxy-target-class="true" />
- <!-- 新增 AccessTokenInterceptor 拦截检验 AccessToken -->
- <mvc:interceptors>
- <mvc:interceptor>
- <mvc:mapping path="/api/**/**" />
- <mvc:exclude-mapping path="/api/user/login" />
- <mvc:exclude-mapping path="/api/tongyi/getTongYiUrl" />
- <mvc:exclude-mapping path="/api/tongyi/getUserInfo" />
- <mvc:exclude-mapping path="/api/tongyi/getLogoutUrl" />
- <mvc:exclude-mapping
- path="/api/reviewQuestionnaire/getreviewquestionnaireanswer" />
- <mvc:exclude-mapping
- path="/api/reviewScore/updataflag" />
- <mvc:exclude-mapping path="/api/reviewScore/add" />
- <mvc:exclude-mapping path="/api/service/datav/**" />
- <mvc:exclude-mapping
- path="/api/reviewQuestionnaire/getreviewquestionnaireanswer" />
- <mvc:exclude-mapping path="/api/canteenInvestigate/bdpsndoc" />
-
- <mvc:exclude-mapping path="/api/canteenInvestigate/getcantequestionnaireaca" />
- <mvc:exclude-mapping path="/api/canteenScore/bdpsndoccadati" />
- <mvc:exclude-mapping path="/api/canteenScore/updatescore" />
- <mvc:exclude-mapping path="/api/canteenScore/add" />
- <mvc:exclude-mapping path="/api/reviewQuestionnaireProblemClassification/pqpclist" />
-
- <mvc:exclude-mapping path="/api/personnelAssessment/getreviewquestionnaireanswer" />
- <mvc:exclude-mapping path="/api/personnelAssessment/updataflag" />
- <mvc:exclude-mapping path="/api/personnelAssessment/addScoreAssessment" />
- <mvc:exclude-mapping
- path="/api/reviewScore/updataflag" />
- <mvc:exclude-mapping path="/api/reviewScore/add" />
-
- <mvc:exclude-mapping path="/api/personInfo/personInfoApp" />
- <mvc:exclude-mapping path="/api/datav/**" />
- <mvc:exclude-mapping path="/api/invest/region/investment/app" />
- <mvc:exclude-mapping path="/api/invest/region/investment/investmentAppInfo" />
- <mvc:exclude-mapping path="/api/personInfo/personInfoBdid" />
- <mvc:exclude-mapping path="/api/ckCleaner/ckexpand" />
- <mvc:exclude-mapping path="/api/ckCleaner/allData" />
- <mvc:exclude-mapping path="/api/ckPublicBenefits/getrevenue" />
- <mvc:exclude-mapping path="/api/wcx/wcxInnovation/tongjizhou" />
- <mvc:exclude-mapping path="/api/wcx/wcxInnovation/tongjiyue" />
- <mvc:exclude-mapping path="/api/wcx/wcxInnovation/tongjiri" />
- <mvc:exclude-mapping path="/api/wcx/ckKsh/updateConttPrrty" />
- <mvc:exclude-mapping path="/api/wcx/ckKsh/updateadd" />
- <mvc:exclude-mapping path="/api/wcx/ckKsh/roleadd" />
- <bean
- class="cn.com.countrygarden.bi.main.interceptor.AccessTokenInterceptor" />
- </mvc:interceptor>
- </mvc:interceptors>
- <!-- 新增 微信公众号 拦截检验 AccessToken -->
- <mvc:interceptors>
- <mvc:interceptor>
- <mvc:mapping path="/api/wxLogin/**" />
- <mvc:exclude-mapping path="/api/wxLogin/userAuth" />
- <mvc:exclude-mapping path="/api/wxLogin/authLogin" />
- <mvc:exclude-mapping path="/api/wxLogin/check/phone" />
- <mvc:exclude-mapping path="/api/wxLogin/send/message" />
- <mvc:exclude-mapping path="/api/wxLogin/code" />
- <bean
- class="cn.com.countrygarden.bi.main.interceptor.TygWxInterceptor" />
- </mvc:interceptor>
- </mvc:interceptors>
- <!-- 统一异常处理 -->
- <!--<bean id="exceptionResolver" class="cn.com.countrygarden.bi.main.exception.WebMvcHandlerExceptionResolver"></bean> -->
- <bean
- class="org.springframework.web.servlet.view.InternalResourceViewResolver">
- <property name="prefix">
- <value>/WEB-INF/view/</value>
- </property>
- <property name="suffix">
- <value>.jsp</value>
- </property>
- </bean>
- <bean
- class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
- <property name="order" value="1" />
- <!--<property name="mediaTypes"> -->
- <!--<map> -->
- <!--<entry key="json" value="application/json"/> -->
- <!--<entry key="xml" value="application/xml"/> -->
- <!--</map> -->
- <!--</property> -->
- <property name="defaultViews">
- <list>
- <!-- 输出为JSON数据 -->
- <bean
- class="org.springframework.web.servlet.view.json.MappingJackson2JsonView">
- </bean>
- </list>
- </property>
- </bean>
- <bean id="cacheDataTask" class="cn.com.countrygarden.bi.main.controller.manager.ManagerMapCacheDataTask">
- <property name="managerMapUtil" ref="managerMapUtil"/>
- </bean>
- <task:scheduler id="testTask" pool-size="3" />
- <task:scheduled-tasks scheduler="testTask">
- <task:scheduled ref="cacheDataTask" method="cacheManagerMapData" cron="0 0 0 ? * WED,SUN" />
- <task:scheduled ref="cacheDataTask" method="cacheHouseKeeperData" cron="0 0 1 ? * WED,SUN" />
- <!--<task:scheduled ref="cacheDataTask" method="test" cron="0 0/1 * * * ?" />-->
- </task:scheduled-tasks>
- <bean id="adviseTimeOutTimer" class=" cn.com.countrygarden.bi.main.controller.advise.AdviseTimeOutTimer">
- <property name="adviseUtil" ref="adviseUtil"/>
- </bean>
- <task:scheduler id="adviseTask" pool-size="3" />
- <task:scheduled-tasks scheduler="adviseTask">
- <task:scheduled ref="adviseTimeOutTimer" method="timeOutAdviseProcess" cron="0 0/5 * * * ? " />
- </task:scheduled-tasks>
- <bean id="sendGzhMessageTask" class="cn.com.countrygarden.bi.main.controller.experience.SendGzhMessageTask">
- </bean>
- <task:scheduler id="sendMessageTask" pool-size="3" />
- <task:scheduled-tasks scheduler="adviseTask">
- <task:scheduled ref="sendGzhMessageTask" method="sendMessage" cron="0 0/5 * * * ? " />
- </task:scheduled-tasks>
- </beans>
|