SpringCloud --- FeignClient handle a request timeout issue

1.feign configuration corresponding to FeignClientConfig, will read the configuration file into such a configuration.

2. Connect timeout and read timeout (in a properties file format for example):

feign.client.config.springApplicationName.connectTimeout=1000.

feign.client.config.springApplicationName.readTimeout=1000.

spring.ApplicationName service provider is registered to the application name on the eureka.

3. Other items can be equipped with the bill of lading can see the source code in class 1.

 

 

Guess you like

Origin www.cnblogs.com/wdzhz/p/11025220.html