spring-rpc.xml
4.83 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="GBK"?>
<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="marketClient" class="com.diligrp.market.sdk.MarketApiImpl">-->
<!--</bean>-->
<bean id="orderClient" class="com.b2c.orders.domain.client.OrderClient">
<constructor-arg name="token" value="${website.order.token}"/>
<constructor-arg name="baseUrl" value="${website.order.baseUrl}"/>
</bean>
<bean id="cmsClient" class="com.diligrp.cms.sdk.CmsClient">
<constructor-arg name="baseurl" value="${project.cms.baseUrl}"/>
<constructor-arg name="port" value="${project.cms.port}"/>
</bean>
<bean id="myAppClient" class="com.b2c.myapp.sdk.MyAppClient">
<constructor-arg name="token" value="token"/>
<constructor-arg name="baseUrl" value="${project.shop.url}"/>
</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="passportRPC"
class="com.diligrp.mobsite.getway.rpc.impl.PassportRPCImpl">
<constructor-arg name="token" value="${website.passport.token}"/>
<constructor-arg name="baseUrl" value="${website.passport.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}"/>
<constructor-arg name="url" value="${website.titan.url}"/>
</bean>
<!--<bean id="imageUploadService" class="com.dili.imageserver.sdk.service.ImageUploadService">-->
<!--<property name="IMAGE_UPLOAD_URL_PREFIX" value="${project.imageserver.prefix}"/>-->
<!--<property name="AUTH_TOKEN" value="LeaDOqaef8mo4G6bSq8o2bh7lEPlViRU"/>-->
<!--<property name="ENCODING" value="UTF-8"></property>-->
<!--<property name="DEFAULT_MAX_PER_ROUTE" value="20"></property>-->
<!--<property name="MAX_TOTAL" value="100"></property>-->
<!--</bean>-->
<!--<bean id="dataStoredConfig" class="com.dili.dataStored.sdk.common.DataStoredConfig">-->
<!--<property name="trackercount" value="${project.fastdfs.trackercount}"/>-->
<!--<property name="connectTimeout" value="${project.fastdfs.connectTimeout}"/>-->
<!--<property name="networkTimeout" value="${project.fastdfs.networkTimeout}"/>-->
<!--<property name="charset" value="${project.fastdfs.charset}"/>-->
<!--<property name="trackers" value="${project.fastdfs.trackers}"/>-->
<!--</bean>-->
<!--<bean id="dataStoredService" class="com.dili.dataStored.sdk.common.DataStoredServiceImpl">-->
<!--<constructor-arg index="0" ref="dataStoredConfig"/>-->
<!--</bean>-->
<!-- 上传图片路径 -->
<bean id="imageStoreUpload" class="com.diligrp.store.api.upload.DiliStoreUpload">
<constructor-arg index="0">
<value>${project.store.url}</value>
</constructor-arg>
<constructor-arg index="1">
<value>${project.store.imageAccessKey}</value>
</constructor-arg>
<constructor-arg index="2">
<value>${project.store.imageSecretKey}</value>
</constructor-arg>
</bean>
<!-- 上传音频路径 -->
<bean id="messageStoreUpload" class="com.diligrp.store.api.upload.DiliStoreUpload">
<constructor-arg index="0">
<value>${project.store.url}</value>
</constructor-arg>
<constructor-arg index="1">
<value>${project.store.messageAccessKey}</value>
</constructor-arg>
<constructor-arg index="2">
<value>${project.store.messageSecretKey}</value>
</constructor-arg>
</bean>
<bean id="stationMsgRPC"
class="com.diligrp.mobsite.getway.rpc.impl.StationMsgRPCImpl">
<constructor-arg name="token" value="${website.stationmsg.token}"/>
<constructor-arg name="baseUrl" value="${website.stationmsg.baseUrl}"/>
</bean>
<!-- 关键词过滤 -->
<bean id="keyWordsClient" class="com.yqyw.filter.client.KeyWordsClient">
<constructor-arg name="token" value="${project.keyword.token}"/>
<constructor-arg name="baseUrl" value="${project.keyword.url}"/>
</bean>
<bean id="messageProducerClient" class="com.diligrp.messageCenter.sdk.MessageProducerClient">
<constructor-arg name="diliMQProducer" ref="diliMQProducer"/>
</bean>
<bean id="diliMQProducer" class="com.diligrp.util.rocketMQUtil.impl.DiliMQProducerImpl"/>
</beans>