Feign的调用报错时,降级处理fallBackFactory
项目结构:

代码:
remoteCdsService
package com.gsafety.framework.api;
import com.alibaba.fastjson.JSONObject;
import com.gsafety.framework.api.constant.ServiceNameConstants;
import com.gsafety.framework.api.factory.RemoteRcsFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(contextId = "remoteRcsService", value = ServiceNameConstants.RCS_SERVICE, fallba