Feign原理:current list of Servers哪里来的

current list of Servers中的ip目前是服务器上的地址,怎么改变成本地地址呢?

DynamicServerListLoadBalancer:{NFLoadBalancer:name=SC-CLOUD-API,current list of Servers=[10.79.4.78:8083],Load balancer stats=Zone stats: {defaultzone=[Zone:defaultzone; Instance count:1; Active connections count: 0; Circuit breaker tripped count: 0; Active connections per server: 0.0;]

H5中对应地址:
在这里插入图片描述
在这里插入图片描述

API中对应地址:
在这里插入图片描述在这里插入图片描述
运行后log:

2022-03-08 09:19:14,184 http-nio-8088-exec-3 INFO (ContorllerAop.java:113)- 调用方法===============运营仪表盘[/operationDashboard]===========参数是========================参数值[{"coinType":"JFB","datetime":"2020-01-09","department":"3061","oaId":"209364","resourceType":["0","1"],"year":"2021"}]
SCSESSION=f285dac7d9944860972adac2905489b52022-03-08 09:19:14,308 http-nio-8088-exec-3 INFO (EpollProvider.java:68)- Starting without optional epoll library
2022-03-08 09:19:14,310 http-nio-8088-exec-3 INFO (KqueueProvider.java:70)- Starting without optional kqueue library
2022-03-08 09:19:15,159 http-nio-8088-exec-3 INFO (DashboardController.java:59)- 获取的OaId为--209364
2022-03-08 09:19:36,143 http-nio-8088-exec-3 INFO (ChainedDynamicProperty.java:115)- Flipping property: SC-CLOUD-API.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2022-03-08 09:19:36,145 http-nio-8088-exec-3 INFO (ShutdownEnabledTimer.java:58)- Shutdown hook installed for: NFLoadBalancer-PingTimer-SC-CLOUD-API
2022-03-08 09:19:36,145 http-nio-8088-exec-3 INFO (BaseLoadBalancer.java:197)- Client: SC-CLOUD-API instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=SC-CLOUD-API,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
2022-03-08 09:19:36,148 http-nio-8088-exec-3 INFO (DynamicServerListLoadBalancer.java:222)- Using serverListUpdater PollingServerListUpdater
2022-03-08 09:19:36,150 http-nio-8088-exec-3 INFO (ChainedDynamicProperty.java:115)- Flipping property: SC-CLOUD-API.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2022-03-08 09:19:36,152 http-nio-8088-exec-3 INFO (DynamicServerListLoadBalancer.java:150)- DynamicServerListLoadBalancer for client SC-CLOUD-API initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=SC-CLOUD-API,current list of Servers=[10.79.4.78:8083],Load balancer stats=Zone stats: {defaultzone=[Zone:defaultzone;	Instance count:1;	Active connections count: 0;	Circuit breaker tripped count: 0;	Active connections per server: 0.0;]
},Server stats: [[Server:10.79.4.78:8083;	Zone:defaultZone;	Total Requests:0;	Successive connection failure:0;	Total blackout seconds:0;	Last connection made:Thu Jan 01 08:00:00 CST 1970;	First connection made: Thu Jan 01 08:00:00 CST 1970;	Active Connections:0;	total failure count in last (1000) msecs:0;	average resp time:0.0;	90 percentile resp time:0.0;	95 percentile resp time:0.0;	min resp time:0.0;	max resp time:0.0;	stddev resp time:0.0]
]}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@529e5141
2022-03-08 09:19:39,810 http-nio-8088-exec-3 INFO (ContorllerAop.java:135)- 执行方法:================================运营仪表盘[/operationDashboard]耗时:==========25630========================================

只需要改名字吧,如下
在这里插入图片描述
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值