Commit fdfee827 by 杨卫

feat:dubbo远程调用配置

1 parent 4821fff8
package cn.com.glsx.dj.strategy.config;
import cn.com.glsx.dj.peanalysis.remote.BiAnalyseBackgroundRemote;
import lombok.RequiredArgsConstructor;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author yangwei
* @version 1.0
* @since 2026/01/20 14:53
*/
@Configuration
@RequiredArgsConstructor
public class PeAnalysisDubboConfig {
private final ReferenceBuilderFactory factory;
@Bean
public BiAnalyseBackgroundRemote biAnalyseBackgroundRemote(){
return factory
.builder(BiAnalyseBackgroundRemote.class)
.check(false)
.timeout(30000)
.build();
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!