|
@@ -18,7 +18,7 @@ public class RemoteService<T> {
|
|
|
application.setName(serviceName);
|
|
application.setName(serviceName);
|
|
|
|
|
|
|
|
ConsumerConfig consumerConfig = new ConsumerConfig();
|
|
ConsumerConfig consumerConfig = new ConsumerConfig();
|
|
|
- consumerConfig.setTimeout(30_000);
|
|
|
|
|
|
|
+ consumerConfig.setTimeout(60_000);
|
|
|
|
|
|
|
|
// 注意:ReferenceConfig为重对象,内部封装了与注册中心的连接,以及与服务提供方的连接
|
|
// 注意:ReferenceConfig为重对象,内部封装了与注册中心的连接,以及与服务提供方的连接
|
|
|
// 引用远程服务
|
|
// 引用远程服务
|