审查视图

src/main/java/com/sunyo/wlpt/dispatch/fegin/GetUserFeginHystrix.java 731 字节
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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
16
public class GetUserFeginHystrix implements GetUserFegin {
17 18

    @Override
19
    public ResultJson<PageInfo> list(String userName, String token) {
20 21 22 23 24 25
        System.out.println("与 CLOUD-USER-CENTER 服务断开连接");
//        throw new RuntimeException();
        return null;
    }

}