OpenFeign远程调用超时配置不生效
一开始的配置
feign:
httpclient:
connection-timeout: 5000
connection-timer-repeat: 5000
修改后的配置
feign:
client:
config:
default:
connectTimeout: 5000
readTimeout: 5000
如果出现如下内容的错误
feign.RetryableException: Incomplete output stream executing POST
添加以下依赖即可
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-httpclient</artifactId>
</dependency>
如果对你有帮助,请留下脚印👣让我知道哦!