forked from 151376liujie/wechat-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplicationContext.xml
More file actions
34 lines (28 loc) · 1.69 KB
/
applicationContext.xml
File metadata and controls
34 lines (28 loc) · 1.69 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
<?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:util="http://www.springframework.org/schema/util"
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/util
http://www.springframework.org/schema/util/spring-util.xsd">
<!-- redis.properties文件与微信框架无关,只用作示例展示使用 -->
<context:property-placeholder location="classpath:/redis.properties,classpath:/wechat.properties" />
<!-- 该xml配置文件与微信框架无关,只用作示例展示使用 -->
<import resource="spring-redis.xml" />
<bean id="wechatConfig" class="com.jonnyliu.proj.wechat.config.WechatConfig" >
<property name="appId" value="${wechat.appId}"/>
<property name="appsecret" value="${wechat.appsecret}"/>
<property name="token" value="${wechat.token}"/>
<property name="encodingAESKey" value="${wechat.encodingAESKey}"/>
</bean>
<!--微信消息转换器注入 -->
<context:component-scan base-package="com.jonnyliu.proj.wechat.converter"/>
<!-- 所有API注入spring -->
<context:component-scan base-package="com.jonnyliu.proj.wechat.service"/>
<!-- 该包与微信框架无关,只用作示例展示使用 -->
<context:component-scan base-package="com.jonnyliu.proj.wechat.manager" />
</beans>