diff --git a/bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/RemoteSystemFileService.java b/bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/RemoteSystemFileService.java index f98c707..21b2c91 100644 --- a/bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/RemoteSystemFileService.java +++ b/bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/RemoteSystemFileService.java @@ -1,6 +1,6 @@ package com.bnyer.system.api; -import com.bnyer.system.api.factory.RemoteFileFallbackFactory; +import com.bnyer.system.api.factory.RemoteSystemFileFallbackFactory; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.PostMapping; @@ -15,7 +15,7 @@ import com.bnyer.system.api.domain.SysFile; * * @author ruoyi */ -@FeignClient(contextId = "remoteSystemFileService", value = ServiceNameConstants.SYSTEM_FILE_SERVICE, fallbackFactory = RemoteFileFallbackFactory.class) +@FeignClient(contextId = "remoteSystemFileService", value = ServiceNameConstants.SYSTEM_FILE_SERVICE, fallbackFactory = RemoteSystemFileFallbackFactory.class) public interface RemoteSystemFileService { /** diff --git a/bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/factory/RemoteFileFallbackFactory.java b/bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/factory/RemoteSystemFileFallbackFactory.java similarity index 87% rename from bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/factory/RemoteFileFallbackFactory.java rename to bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/factory/RemoteSystemFileFallbackFactory.java index a270e60..31b4a02 100644 --- a/bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/factory/RemoteFileFallbackFactory.java +++ b/bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/factory/RemoteSystemFileFallbackFactory.java @@ -15,9 +15,9 @@ import com.bnyer.system.api.domain.SysFile; * @author ruoyi */ @Component -public class RemoteFileFallbackFactory implements FallbackFactory +public class RemoteSystemFileFallbackFactory implements FallbackFactory { - private static final Logger log = LoggerFactory.getLogger(RemoteFileFallbackFactory.class); + private static final Logger log = LoggerFactory.getLogger(RemoteSystemFileFallbackFactory.class); @Override public RemoteSystemFileService create(Throwable throwable) diff --git a/bnyer-api/bnyer-api-system/src/main/resources/META-INF/spring.factories b/bnyer-api/bnyer-api-system/src/main/resources/META-INF/spring.factories index 721a64b..9cb85aa 100644 --- a/bnyer-api/bnyer-api-system/src/main/resources/META-INF/spring.factories +++ b/bnyer-api/bnyer-api-system/src/main/resources/META-INF/spring.factories @@ -1,4 +1,4 @@ org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ com.bnyer.system.api.factory.RemoteUserFallbackFactory,\ com.bnyer.system.api.factory.RemoteLogFallbackFactory, \ - com.bnyer.system.api.factory.RemoteFileFallbackFactory + com.bnyer.system.api.factory.RemoteSystemFileFallbackFactory diff --git a/bnyer-services/bnyer-img/src/main/java/com/bnyer/img/BnyerImgApplication.java b/bnyer-services/bnyer-img/src/main/java/com/bnyer/img/BnyerImgApplication.java index be25728..d6c309e 100644 --- a/bnyer-services/bnyer-img/src/main/java/com/bnyer/img/BnyerImgApplication.java +++ b/bnyer-services/bnyer-img/src/main/java/com/bnyer/img/BnyerImgApplication.java @@ -15,7 +15,7 @@ import org.springframework.scheduling.annotation.EnableAsync; @EnableCustomConfig @EnableCustomSwagger2 @EnableRyFeignClients -@SpringBootApplication +@SpringBootApplication(scanBasePackages = { "com.bnyer"}) @EnableAsync public class BnyerImgApplication { diff --git a/bnyer-services/bnyer-img/src/main/resources/bootstrap.yml b/bnyer-services/bnyer-img/src/main/resources/bootstrap.yml index 24a97ef..d6e0696 100644 --- a/bnyer-services/bnyer-img/src/main/resources/bootstrap.yml +++ b/bnyer-services/bnyer-img/src/main/resources/bootstrap.yml @@ -12,4 +12,4 @@ spring: name: bnyer-img profiles: # 环境配置 - active: dev + active: test