添加FeignClient注释
This commit is contained in:
parent
0cdb340ad4
commit
37181a3a7c
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue