ComputeClientHystrix.java 381 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
package com.kwan.springcloud.api;

import com.kwan.springcloud.response.Result;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
public class ComputeClientHystrix implements ComputeClient {
    @Override
    public Result selectOne(Serializable id) {
        return Result.error("feign方式请求  服务不可用 请求失败");
    }
}