Skip to content

FeignClient support setting method read/connect timeout #1450

Open
@chengyouling

Description

@chengyouling

feignClient调用支持方法级超时时间设置

方案:
1、新增一个方法注解,参数为feign中的Options参数;
2、在需要设置超时的接口上增加注解即可;
3、实现jdk中的InvocationHandler接口,接口中主动添加Options,在feign-core中SynchronousMethodHandler类中处理Options参数用于调用;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions