HardwareDubboConfig.java
1.14 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
package cn.com.glsx.dj.weapp.config;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import cn.com.glsx.dj.customer.remote.CustomerDeviceRemote;
import cn.com.glsx.dj.hardware.remote.MerchantKafkaRemote;
/**
* @Title: MarketingDubboConfig.java
* @Description: 客户管理Dubbo服务配置
* @author Alvin
* @date 2019年12月26日 上午10:24:24
* @version V1.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2018
*/
@Configuration
public class HardwareDubboConfig {
@Autowired
private ReferenceBuilderFactory factory;
/**
* 录入设备远程处理
* @return
* @author huangzhi
* @date 2020年2月3日
*/
@Bean
public CustomerDeviceRemote customerDeviceRemote(){
return factory.builder(CustomerDeviceRemote.class).timeout(30000).check(false).build();
}
@Bean
public MerchantKafkaRemote merchantKafkaRemote(){
return factory.builder(MerchantKafkaRemote.class).timeout(30000).check(false).build();
}
}