spring-rpc.xml 3.74 KB
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	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"
	default-autowire="byName">

	<bean id="userClient" class="com.yqyw.user.rpc.client.UserClient">
		<constructor-arg name="token" value="${website.user.token}" />
		<constructor-arg name="baseUrl" value="${website.user.baseUrl}" />
	</bean>

	<bean id="websiteClient" class="com.diligrp.website.web.interfaces.WebsiteClient">
		<constructor-arg name="token" value="${website.websiteClient.token}" />
		<constructor-arg name="baseUrl"
			value="${website.websiteClient.baseUrl}" />
	</bean>

	<bean id="titanClient" class="com.diligrp.titan.sdk.TitanClient">
		<constructor-arg name="accesskey" value="${website.titan.accesskey}" />
		<constructor-arg name="secretkey" value="${website.titan.secretkey}" />
	</bean>

	<bean id="orderClient" class="com.diligrp.orders.client.OrderClient">
		<constructor-arg value="aaa" />
	</bean>

	<bean id="logicRPCServiceImpl" class="com.diligrp.website.rpc.impl.LogicRPCServiceImpl">
		<property name="wlHost" value="${wl.url}"></property>
		<property name="header">
			<map>
				<entry key="sign" value="${wl.sign}"></entry>
			</map>
		</property>
	</bean>

	<!-- 店铺接口 -->
	<bean id="shopClient" class="com.diligrp.pnr.sdk.client.ShopClient">
		<property name="sign" value="${manage.shopClient.sign}"></property>
		<property name="url" value="${manage.shopClient.url}"></property>
		<property name="system" value="${manage.shopClient.system}"></property>
	</bean>

	<bean class="java.lang.String" name="passportRegUrl">
		<constructor-arg value="${passport.register.url}" />
	</bean>

	<bean class="java.lang.String" name="passportRegSign">
		<constructor-arg value="${passport.interface.sign}" />
	</bean>

	<bean class="java.lang.String" name="passportRegPwd">
		<constructor-arg value="${passport.interface.pwd}" />
	</bean>

	<!-- <bean id="imageUploadService" class="com.dili.imageserver.sdk.service.ImageUploadService"> 
		Required Properties <property name="IMAGE_UPLOAD_URL_PREFIX" value="${project.image.server.host}" 
		/> <property name="AUTH_TOKEN" value="LeaDOqaef8mo4G6bSq8o2bh7lEPlViRU" /> 
		Optional Properties <property name="ENCODING" value="UTF-8" /> <property 
		name="DEFAULT_MAX_PER_ROUTE" value="20" /> <property name="MAX_TOTAL" value="100" 
		/> Optional Domain Configuration <property name="IMAGE_SERVER_DOMAIN" value="${project.image.server.domain}" 
		/> </bean> -->

	<bean id="diliStoreUpload" class="com.diligrp.store.api.upload.DiliStoreUpload">
		<constructor-arg name="url" value="${project.image.server.host}" />
		<constructor-arg name="accessKey"
			value="${project.image.server.accesskey}" />
		<constructor-arg name="secretKey"
			value="${project.image.server.secretkey}" />
	</bean>

	<bean id="imageUploadConstants" class="com.diligrp.website.manweb.utils.ImageUploadConstants">
		<property name="host" value="${project.image.server.host}" />
		<property name="bucketName" value="${project.image.server.bucketname}"></property>
	</bean>

	<bean id="md5Utils" class="com.diligrp.website.util.code.MD5Utils" />

	<!-- 中国建网(sms.webchinese.cn) SMS短信发送接口实现 -->
	<bean id="smsRpcService"
		class="com.diligrp.website.rpc.impl.SMSWebChineseRPCServiceImpl">
		<property name="smsSwitch" value="${sms.switch}" />
		<property name="md5Utils" ref="md5Utils" />
		<property name="SMSConfig">
			<map>
				<entry key="SMSKey" value="${project.sms.webchina.SMSKey}" />
				<entry key="userName" value="${project.sms.webchina.userName}" />
				<entry key="postURL" value="${project.sms.webchina.postURL}" />
			</map>
		</property>
	</bean>
</beans>