Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -3,9 +3,9 @@ package com.njcn.device.pq.api.fallback;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.device.biz.utils.DeviceEnumUtil;
|
||||
import com.njcn.device.pq.api.AlarmClient;
|
||||
import com.njcn.device.pq.pojo.vo.AlarmStrategyVO;
|
||||
import com.njcn.device.biz.utils.DeviceEnumUtil;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
@@ -14,11 +14,12 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* 告警管理熔断降级
|
||||
*
|
||||
* @author yzh
|
||||
* @date 2022/9/19
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
@Component("deviceAlarmClientFallbackFactory")
|
||||
public class AlarmClientFallbackFactory implements FallbackFactory<AlarmClient> {
|
||||
@Override
|
||||
public AlarmClient create(Throwable throwable) {
|
||||
|
||||
Reference in New Issue
Block a user