1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?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:context="http://www.springframework.org/schema/context"
- xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
- xmlns:cache="http://www.springframework.org/schema/cache"
- xmlns:tx="http://www.springframework.org/schema/tx"
- default-autowire="byName"
- default-lazy-init="true"
- xmlns:task="http://www.springframework.org/schema/task"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:ehcache-spring="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
- xmlns:p="http://www.springframework.org/schema/p"
- xmlns:websocket="http://www.springframework.org/schema/websocket"
- xsi:schemaLocation=
- "http://www.springframework.org/schema/aop
- http://www.springframework.org/schema/aop/spring-aop-4.1.xsd
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring
- http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd
- http://www.springframework.org/schema/cache
- http://www.springframework.org/schema/cache/spring-cache-4.1.xsd
- http://www.springframework.org/schema/tx
- http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
- http://www.springframework.org/schema/task
- http://www.springframework.org/schema/task/spring-task-3.1.xsd
- http://www.springframework.org/schema/websocket
- http://www.springframework.org/schema/websocket/spring-websocket.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-3.2.xsd">
- <!-- 配置自动扫描的包:不扫描控制器和异常处理 -->
- <context:component-scan base-package="com.iamberry">
- <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" />
- <context:exclude-filter type="annotation" expression="org.springframework.web.bind.annotation.ControllerAdvice" />
- </context:component-scan>
-
- <!-- 使用CGLIB动态代理 -->
- <aop:aspectj-autoproxy proxy-target-class="true"/>
- <!-- 开启这个配置,spring才能识别@Scheduled注解 -->
- <task:annotation-driven executor="myExecutor"
- scheduler="myScheduler" />
- <task:executor id="myExecutor" pool-size="5" />
- <task:scheduler id="myScheduler" pool-size="10" />
- <!-- 通过Dubbo 完成SOA -->
- <import resource="classpath:iamberry-app-api-consumer.xml"/>
- </beans>
|