SpringCloud OpenFeign 发送http请求指定URL

SpringCloud OpenFeign 发送http请求指定URL

OpenFeign 发送http请求 OpenFeign 接口

@FeignClient(name="servlet", url="localhost:7002",fallback=OpenFeignService.class )
@Component
public interface OpenFeignService{
     
    @PostMapping(value = "/servlet/ESignatureServer", headers={
     "Content-Type=application/json;charset=UTF-8"})
    
    public String hello();
}

SpringCloud OpenFeign 熔断实现参考一下:

https://editor.csdn.net/md/?articleId=111928960

你可能感兴趣的:(OpenFeign,SpringCloud,java)