iamberry-wechat-web-ioc.xml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
  6. xmlns:cache="http://www.springframework.org/schema/cache"
  7. xmlns:tx="http://www.springframework.org/schema/tx"
  8. default-autowire="byName"
  9. default-lazy-init="true"
  10. xmlns:task="http://www.springframework.org/schema/task"
  11. xmlns:aop="http://www.springframework.org/schema/aop"
  12. xmlns:ehcache-spring="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
  13. xmlns:p="http://www.springframework.org/schema/p"
  14. xmlns:websocket="http://www.springframework.org/schema/websocket"
  15. xsi:schemaLocation=
  16. "http://www.springframework.org/schema/aop
  17. http://www.springframework.org/schema/aop/spring-aop-4.1.xsd
  18. http://www.springframework.org/schema/beans
  19. http://www.springframework.org/schema/beans/spring-beans.xsd
  20. http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring
  21. http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd
  22. http://www.springframework.org/schema/cache
  23. http://www.springframework.org/schema/cache/spring-cache-4.1.xsd
  24. http://www.springframework.org/schema/tx
  25. http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
  26. http://www.springframework.org/schema/task
  27. http://www.springframework.org/schema/task/spring-task-3.1.xsd
  28. http://www.springframework.org/schema/websocket
  29. http://www.springframework.org/schema/websocket/spring-websocket.xsd
  30. http://www.springframework.org/schema/context
  31. http://www.springframework.org/schema/context/spring-context-3.2.xsd">
  32. <!-- 配置自动扫描的包:不扫描控制器和异常处理 -->
  33. <context:component-scan base-package="com.iamberry">
  34. <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" />
  35. <context:exclude-filter type="annotation" expression="org.springframework.web.bind.annotation.ControllerAdvice" />
  36. </context:component-scan>
  37. <!-- 使用CGLIB动态代理 -->
  38. <aop:aspectj-autoproxy proxy-target-class="true"/>
  39. <!-- 配置springContextHolder -->
  40. <bean class="com.iamberry.zk.SpringContextHolder" lazy-init="false" />
  41. <!-- 平台LOG配置,立即加载,拒绝懒加载 -->
  42. <bean id="logger" class="com.iamberry.app.tool.log.RatFWLogger" scope="singleton" autowire="byName" lazy-init="false">
  43. <property name="appId" value="iamberry" />
  44. </bean>
  45. <!-- 加载静态资源 -->
  46. <bean id="loadResultInfo" class="com.iamberry.wechat.tools.loadResultUtil" lazy-init="false"></bean>
  47. <!-- 缺省的异步任务线程池
  48. <task:executor id="asyncExecutor" pool-size="1-1000" rejection-policy="CALLER_RUNS" queue-capacity="10" />
  49. <task:annotation-driven executor="asyncExecutor"/> -->
  50. <!-- 将30天后奖励积分的定时任务的xml引入
  51. <import resource="classpath:iamberry-wechat-service-orderTesk.xml"></import> -->
  52. <!-- 开启注解启动定时器 -->
  53. <task:annotation-driven/>
  54. <!-- 加载zk config -->
  55. <!-- <context:property-placeholder location="classpath:zk.properties"/> -->
  56. <!-- 通过Dubbo 完成SOA -->
  57. <import resource="classpath:iamberry-wechat-web-consumer.xml"/>
  58. </beans>