spring-config-rpc.xml
3.47 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?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>