spring-wechat-service.xml 2.1 KB
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">
       
	<!-- 获取Access_token -->
	<bean id="accessTokenService" class="com.sibu.directSale.wechat.service.impl.AccessTokenServiceImpl" />
	
	<!-- 微信自定义菜单 -->
	<bean id="wechatMenuService" class="com.sibu.directSale.wechat.service.menu.impl.WechatMenuServiceImpl">
		<property name="accessTokenService" ref="accessTokenService" />
	</bean>
	
	<!-- 获取微信用户信息 -->
	<bean id="wechatUserinfoService" class="com.sibu.directSale.wechat.service.userinfo.impl.WechatUserinfoServiceImpl">
		<property name="accessTokenService" ref="accessTokenService" />
	</bean>
	
	<!-- jssdk签名 -->
	<bean id="wechatJsTicketService" class="com.sibu.directSale.wechat.service.jssdk.impl.WechatJsTicketServiceImpl">
		<property name="accessTokenService" ref="accessTokenService" />
	</bean>
	
	<!-- 微信模板消息 -->
	<bean id="wechatTemplateService" class="com.sibu.directSale.wechat.service.template.impl.WechatTemplateServiceImpl">
		<property name="accessTokenService" ref="accessTokenService" />
	</bean>
	
	<!-- 企业付款/退款service开始 -->
	<!--<bean id="httpsRequest" class="com.sibu.directSale.wechat.service.impl.HttpsRequest" />
	<bean id="wechatTransfersService" class="com.sibu.directSale.wechat.transfers.impl.WechatTransfersServiceImpl" scope="prototype">
		<property name="httpsRequest" ref="httpsRequest" />
	</bean>-->

	<bean id="wxSendTemplateMsg" class="com.sibu.directSale.wechat.templateMsg.WxSendTemplateMsg">
		<property name="accessTokenService" ref="accessTokenService"/>
	</bean>


</beans>