optimize: 调整超时时间
This commit is contained in:
parent
b4693fa64a
commit
119b147665
|
|
@ -1,11 +1,14 @@
|
|||
package com.nflg.product.bomnew.config;
|
||||
|
||||
import com.nflg.product.base.core.config.fillter.HttpInterceptor;
|
||||
import feign.Request;
|
||||
import feign.RequestInterceptor;
|
||||
import feign.RequestTemplate;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* @author 曹鹏飞
|
||||
* @date 2024/5/18 10:39:30
|
||||
|
|
@ -23,4 +26,9 @@ public class FeignClientConfiguration {
|
|||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Bean
|
||||
public Request.Options options() {
|
||||
return new Request.Options(5000, TimeUnit.MILLISECONDS, 5000, TimeUnit.MILLISECONDS, true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue