2020
10-10
10-10
feign客户端设置超时时间操作
我就废话不多说了,大家还是直接看代码吧~/***feign调用客户端*/@FeignClient(name="user",url="${user.url}",configuration=MyFeignDecoder.class)publicinterfaceUserClient{@GetMapping("/rest/user/get/detail/{loginName}")JSONObjectgetUserInfoByLoginName(@PathVariable(value="loginName")StringloginName);}importorg.slf4j.Logger;importorg.slf4j.LoggerFactory;importorg.springframework.co...
继续阅读 >