|
@@ -13,20 +13,20 @@ import org.springframework.stereotype.Component;
|
|
|
* @author han
|
|
|
* @date 2024/04/02 15:07
|
|
|
*/
|
|
|
-@Component
|
|
|
-public class RemoteMceFallbackFactory implements FallbackFactory<RemoteMceService> {
|
|
|
- private static final Logger log = LoggerFactory.getLogger(RemoteMceFallbackFactory.class);
|
|
|
-
|
|
|
- @Override
|
|
|
- public RemoteMceService create(Throwable throwable)
|
|
|
- {
|
|
|
- log.error("iot服务调用失败:{}", throwable.getMessage());
|
|
|
- return new RemoteMceService()
|
|
|
- {
|
|
|
- @Override
|
|
|
- public ApiResult<Void> addMce(String mceReceive) {
|
|
|
- throw new FeignBadRequestException(500,"新增消息异常"+throwable.getMessage());
|
|
|
- }
|
|
|
- };
|
|
|
- }
|
|
|
-}
|
|
|
+//@Component
|
|
|
+//public class RemoteMceFallbackFactory implements FallbackFactory<RemoteMceService> {
|
|
|
+// private static final Logger log = LoggerFactory.getLogger(RemoteMceFallbackFactory.class);
|
|
|
+//
|
|
|
+// @Override
|
|
|
+// public RemoteMceService create(Throwable throwable)
|
|
|
+// {
|
|
|
+// log.error("iot服务调用失败:{}", throwable.getMessage());
|
|
|
+// return new RemoteMceService()
|
|
|
+// {
|
|
|
+// @Override
|
|
|
+// public ApiResult<Void> addMce(String mceReceive) {
|
|
|
+// throw new FeignBadRequestException(500,"新增消息异常"+throwable.getMessage());
|
|
|
+// }
|
|
|
+// };
|
|
|
+// }
|
|
|
+//}
|