物联网平台 +Web 组态
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
2.0 KiB

2 years ago
<?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:p="http://www.springframework.org/schema/p" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:websocket="http://www.springframework.org/schema/websocket"
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-3.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/websocket http://www.springframework.org/schema/websocket/spring-websocket.xsd">
<!-- 微信基本配置 -->
<bean id="wxMpConfigStorage" class="me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage">
<property name="appId">
<value>${weixin.mp.appid}</value>
</property>
<property name="secret">
<value>${weixin.mp.secret}</value>
</property>
<property name="token">
<value>${weixin.mp.token}</value>
</property>
<property name="aesKey">
<value>${weixin.mp.aesKey}</value>
</property>
<!-- 网页授权重定向url -->
<property name="oauth2redirectUri">
<value>${local.domain}${weixin.mp.oauth2.redirect_uri}</value>
</property>
</bean>
<!-- 微信服务主要用于发送微信信息,修改服务号配置 -->
<bean id="wxMpService" class="me.chanjar.weixin.mp.api.WxMpServiceImpl">
<property name="wxMpConfigStorage">
<ref bean="wxMpConfigStorage" />
</property>
</bean>
<!-- 微信规则路由 -->
<bean id="wxMpMessageRouter" class="me.chanjar.weixin.mp.api.WxMpMessageRouter">
<constructor-arg name="wxMpService" ref="wxMpService" />
</bean>
</beans>