spring-config-rpc.xml 3.47 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"
       xmlns:context="http://www.springframework.org/schema/context"
       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"
       default-autowire="byName">
	<context:component-scan base-package="com.diligrp.orders.rpc.service"/>

    <bean id="rpcUtils" class="com.diligrp.orders.common.tools.RpcUtils">
	    <property name="supplierUrl" value="${crm.supplierUrl}" />
	    <property name="memberUrl" value="${website.memberUrl}" />
	    <property name="agentsaleUrl" value="${titan.agentsaleUrl}" />
	    <property name="productUrl" value="${titan.productUrl}" />
        <property name="autoCommentRate" value="${orders.sku.auto.comment.rate}" />
        <property name="autoCommentText" value="${orders.sku.auto.comment.text}" />
        <property name="webSiteProductUrl" value="${website.productUrl}" />
    </bean>
	 <!-- 加入商品库sdk接口支持 -->
	<bean id="titanClient" class="com.diligrp.titan.sdk.TitanClient">
	    <constructor-arg value="aaa" />
	    <constructor-arg value="bbb" />
	    <constructor-arg value="${orders.rpc.titan.domain.url}" />
	</bean>
	
	<!-- 加入(买家、卖家)用户接口支持 -->
	<bean id="userClient" class="com.yqyw.user.rpc.client.UserClient">
	    <constructor-arg value="aaa" />
	    <constructor-arg value="${orders.rpc.user.domain.url}" />
	</bean>
	<bean id="userInfoServiceClient" factory-bean="userClient" factory-method="getUserInfoService"></bean>
	<bean id="memberServiceClient" factory-bean="userClient" factory-method="getMemberService"></bean>
	<!-- 店铺接口 -->
	<bean id="shopClient" class="com.yqyw.pnr.sdk.client.ShopClient">
		<property name="sign" value="${orders.rpc.shopClient.sign}"></property>
		<property name="url" value="${orders.rpc.shopClient.url}"></property>
		<property name="system" value="${orders.rpc.shopClient.system}"></property>
	</bean>
	
	<!-- 加入获取主站接口支持 -->
	<bean id="webSiteClient" class="com.diligrp.website.web.interfaces.WebsiteClient">
	    <constructor-arg value="aaa" />
	    <constructor-arg value="${orders.rpc.manweb.domain.url}" />
	</bean>

	<!-- 存储SDK -->
	<bean id="diliStoreUpload" class="com.diligrp.store.api.upload.DiliStoreUpload">
		<constructor-arg index="0" value="http://up.1n4j.com"/>
		<constructor-arg index="1" value="${project.store.accessKey}"/>
		<constructor-arg index="2" value="${project.store.secretKey}"/>
	</bean>
	
	<!-- 加入供应商信息接口支持 -->
	<bean id="crmServiceFactory" class="com.diligrp.crm.dataInterface.factory.CrmServiceFactory">
	    <constructor-arg value="aaa" />
	    <constructor-arg value="${orders.rpc.crm.domain.url}" />
	</bean>
	<bean id="crmService" factory-bean="crmServiceFactory" factory-method="getCrmService">
	</bean>
	<!-- 加入需求中心接口支持 -->
	<bean id="srvceClient" class="com.diligrp.srvce.client.SrvceClient">
	    <constructor-arg value="aaa" />
	</bean>
	
    <!-- 消息中心/待办事项 -->
    
	<bean id="diliMQProducer" class="com.diligrp.util.rocketMQUtil.impl.DiliMQProducerImpl"/>
	<bean id="messageProducerClient" class="com.diligrp.messageCenter.sdk.MessageProducerClient">
		<constructor-arg name="diliMQProducer" ref="diliMQProducer"/>
	</bean>
	
</beans>