Ribbon 负载均衡调用02——Ribbon 负载均衡演示

Ribbon 负载均衡调用02——Ribbon 负载均衡演示



Ribbon 负载均衡调用02——Ribbon 负载均衡演示



Ribbon 负载均衡调用02——Ribbon 负载均衡演示



Ribbon 负载均衡调用02——Ribbon 负载均衡演示

Ribbon 负载均衡调用02——Ribbon 负载均衡演示

Ribbon 负载均衡调用02——Ribbon 负载均衡演示



Ribbon 负载均衡调用02——Ribbon 负载均衡演示

    @GetMapping("/consumer/payment/getForEntity/{id}")
    public CommonResult<Payment> getPayment2(@PathVariable("id") Long id)
    {
        ResponseEntity<CommonResult> entity = restTemplate.getForEntity(PAYMENT_URL+"/payment/get/"+id,CommonResult.class);

        if(entity.getStatusCode().is2xxSuccessful()){
            return entity.getBody();
        }else{
            return new CommonResult<>(444,"操作失败");
        }
    }

Ribbon 负载均衡调用02——Ribbon 负载均衡演示

Ribbon 负载均衡调用02——Ribbon 负载均衡演示

上一篇:koubei.marketing.data.trade.habbit.query(商户会员交易习惯查询接口)JAVA版本demo


下一篇:PXE+DHCP+Apache+KickStart无人值守安装RHEL5.8