applicationContext.xml
2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?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:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.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/context http://www.springframework.org/schema/context/spring-context.xsd">
<!-- 加载ehcache配置 -->
<import resource="classpath:spring-ehcache.xml"/>
<!-- 测试服务器配置 -->
<!-- <import resource="classpath:META-INF/conf/test_conf.xml" /> -->
<!-- 正式环境配置 -->
<import resource="classpath:META-INF/conf/conf.xml"/>
<!-- 数据源 -->
<import resource="classpath:META-INF/conf/spring-config-datasource.xml" />
<!--<import resource="classpath:applicationContext-jms.xml" />-->
<!-- 定时任务配置 -->
<import resource="classpath:META-INF/conf/applicationContext-quartz.xml" />
<import resource="classpath:META-INF/conf/applicationContext-sms.xml"/>
<import resource="classpath:META-INF/conf/service-spring-mq.xml"></import>
<!--微信接口-->
<import resource="classpath:spring-wechat-service.xml"/>
<!-- 开启注解配置 -->
<!-- 开启AOP监听 只对当前配置文件有效 -->
<aop:aspectj-autoproxy expose-proxy="true" />
<!-- 启用组件扫描和自动装配 ,排除@Controller组件,Controller由SpringMVC配置文件扫描 -->
<context:component-scan base-package="com.sibu.orderHelper.base.service.*">
<context:exclude-filter type="annotation"
expression="org.springframework.stereotype.Controller" />
</context:component-scan>
<context:component-scan base-package="com.sibu.orderHelper.integral.web.service.*">
<context:exclude-filter type="annotation"
expression="org.springframework.stereotype.Controller" />
</context:component-scan>
<context:component-scan base-package="com.sibu.orderHelper.service.mq.*" />
<!-- 加载redis集群的配置文件 -->
<import resource="classpath:META-INF/conf/spring-config-redis.xml"/>
<!-- 加载单独redis的配置文件
<import resource="classpath:spring-config-one-redis.xml"/> -->
<aop:aspectj-autoproxy/>
<bean class="com.sibu.orderHelper.common.util.SpringUtils"/>
<!--微信支付到企业-->
<bean id="httpsRequest" class="com.sibu.directSale.wechat.service.impl.HttpsRequest">
</bean>
<bean id="wechatTransfersService" class="com.sibu.directSale.wechat.transfers.impl.WechatTransfersServiceImpl">
<property name="httpsRequest" ref="httpsRequest"></property>
</bean>
</beans>