StrategyDubboConfig.java
1.32 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
package cn.com.glsx.dj.pad.config;
import cn.com.glsx.dj.strategy.remote.CustomerSopRemote;
import cn.com.glsx.dj.strategy.remote.CustomerTagProfileRemote;
import cn.com.glsx.dj.strategy.remote.MarketingActivityProductRemote;
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;
/**
* rpc-dj-strategy-api RPC-API Inject Spring Bean
* @author chenxi
* @version 1.0
* @since 2026/06/33 10:51
*/
@Configuration
public class StrategyDubboConfig extends DubboConfig {
@Autowired
private ReferenceBuilderFactory factory;
@Bean
public CustomerSopRemote getCustomerSopRemote() {
return factory.builder(CustomerSopRemote.class).check(false).timeout(30000).version("1.0.0").build();
}
@Bean
public CustomerTagProfileRemote getCustomerTagProfileRemote() {
return factory.builder(CustomerTagProfileRemote.class).check(false).version("1.0.0").timeout(30000).build();
}
@Bean
public MarketingActivityProductRemote getMarketingActivityProductRemote() {
return factory.builder(MarketingActivityProductRemote.class).check(false).version("1.0.0").timeout(30000).build();
}
}