|
@@ -1,5 +1,6 @@
|
|
|
package com.kxs.system.api.feign.config;
|
|
package com.kxs.system.api.feign.config;
|
|
|
|
|
|
|
|
|
|
+import com.kxs.common.core.constant.ServiceNameConstants;
|
|
|
import com.kxs.system.api.feign.RemoteOldService;
|
|
import com.kxs.system.api.feign.RemoteOldService;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
@@ -38,7 +39,7 @@ public class KxsOldApFeignClientConfiguration {
|
|
|
*/
|
|
*/
|
|
|
@Bean
|
|
@Bean
|
|
|
RemoteOldService remoteOldService(@Qualifier("kxsOldFeignClient") WebClient client) {
|
|
RemoteOldService remoteOldService(@Qualifier("kxsOldFeignClient") WebClient client) {
|
|
|
- HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).build();
|
|
|
|
|
|
|
+ HttpServiceProxyFactory factory = HttpServiceProxyFactory.builder(WebClientAdapter.forClient(client)).blockTimeout(ServiceNameConstants.REQ_TIMEOUT).build();
|
|
|
return factory.createClient(RemoteOldService.class);
|
|
return factory.createClient(RemoteOldService.class);
|
|
|
}
|
|
}
|
|
|
|
|
|