Browse Source

bug处理

feature-1.1
wuxicheng 3 years ago
parent
commit
7c2eeb6288
  1. 4
      bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/RemoteSystemFileService.java
  2. 4
      bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/factory/RemoteSystemFileFallbackFactory.java
  3. 2
      bnyer-api/bnyer-api-system/src/main/resources/META-INF/spring.factories
  4. 2
      bnyer-services/bnyer-img/src/main/java/com/bnyer/img/BnyerImgApplication.java
  5. 2
      bnyer-services/bnyer-img/src/main/resources/bootstrap.yml

4
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
{
/**

4
bnyer-api/bnyer-api-system/src/main/java/com/bnyer/system/api/factory/RemoteFileFallbackFactory.java → 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<RemoteSystemFileService>
public class RemoteSystemFileFallbackFactory implements FallbackFactory<RemoteSystemFileService>
{
private static final Logger log = LoggerFactory.getLogger(RemoteFileFallbackFactory.class);
private static final Logger log = LoggerFactory.getLogger(RemoteSystemFileFallbackFactory.class);
@Override
public RemoteSystemFileService create(Throwable throwable)

2
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

2
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
{

2
bnyer-services/bnyer-img/src/main/resources/bootstrap.yml

@ -12,4 +12,4 @@ spring:
name: bnyer-img
profiles:
# 环境配置
active: dev
active: test

Loading…
Cancel
Save