spring-rpc.xml 4.83 KB
<?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>