GetUserFeginHystrix.java
731 字节
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 {
@Override
public ResultJson<PageInfo> list(String userName, String token) {
System.out.println("与 CLOUD-USER-CENTER 服务断开连接");
// throw new RuntimeException();
return null;
}
}