GetUserFeginHystrix.java 868 字节
package com.sunyo.wlpt.dispatch.fegin;

import com.github.pagehelper.PageInfo;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.sunyo.wlpt.dispatch.response.ResultJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @author 子诚
 * Description:获取用户信息,熔断器
 * 时间:2020/5/8 19:06
 */
@Service
public class GetUserFeginHystrix implements GetUserFegin {
    /**
     *
     *
     * @param userName 用户名称
     * @param token 令牌
     * @return
     */
    @Override
    public ResultJson<PageInfo> list(String userName, String token) {
        System.out.println("与 CLOUD-USER-CENTER 服务断开连接");
//        throw new RuntimeException();
        return null;
    }

}