添加FeignClient注释

This commit is contained in:
choqy 2021-09-21 13:17:33 +08:00
parent 0cdb340ad4
commit 37181a3a7c
2 changed files with 36 additions and 32 deletions

View File

@ -13,7 +13,9 @@ import com.ruoyi.system.api.factory.RemoteFileFallbackFactory;
/** /**
* 文件服务 * 文件服务
* *
* @author ruoyi * 若部署环境不同IP无法相互访问如部分应用在docker中部分在外部则最好指定url明确应用的访问地址
* lynn.server.local 为指向本机的IP地址的本地域名若使用则需要在hosts文件中添加
* url = "http://lynn.server.local:9201/",
*/ */
@FeignClient(contextId = "remoteFileService", value = ServiceNameConstants.FILE_SERVICE, fallbackFactory = RemoteFileFallbackFactory.class) @FeignClient(contextId = "remoteFileService", value = ServiceNameConstants.FILE_SERVICE, fallbackFactory = RemoteFileFallbackFactory.class)
public interface RemoteFileService public interface RemoteFileService

View File

@ -14,9 +14,11 @@ import com.ruoyi.system.api.factory.RemoteLogFallbackFactory;
/** /**
* 日志服务 * 日志服务
* *
* @author ruoyi * 若部署环境不同IP无法相互访问如部分应用在docker中部分在外部则最好指定url明确应用的访问地址
* lynn.server.local 为指向本机的IP地址的本地域名若使用则需要在hosts文件中添加
* url = "http://lynn.server.local:9201/",
*/ */
@FeignClient(contextId = "remoteLogService", url = "http://lynn.server.local:9201/", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteLogFallbackFactory.class) @FeignClient(contextId = "remoteLogService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteLogFallbackFactory.class)
public interface RemoteLogService public interface RemoteLogService
{ {
/** /**