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========================================
只需要改名字吧,如下