Bladeren bron

移除common包中feignExceptionHandler的自动注入,改为在项目中配置注入

lixing 4 jaren geleden
bovenliggende
commit
5d277398e8
1 gewijzigde bestanden met toevoegingen van 18 en 0 verwijderingen
  1. 18 0
      fm-person/src/main/java/com/persagy/fm/common/config/FeignClientConfig.java

+ 18 - 0
fm-person/src/main/java/com/persagy/fm/common/config/FeignClientConfig.java

@@ -0,0 +1,18 @@
+package com.persagy.fm.common.config;
+
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * 类说明
+ *
+ * @author lixing
+ * @version V1.0 2021/4/19 8:03 下午
+ **/
+@Configuration
+public class FeignClientConfig {
+    @Bean
+    public FeignExceptionHandler initFeignExceptionHandler() {
+        return new FeignExceptionHandler();
+    }
+}