JHipster注册中心Spring Eureka服务器配置问题。

问题描述 投票:0回答:1

我似乎没有正确配置启动JHipster注册表实例(Spring Eureka服务器).它一直循环显示以下信息。

DEBUG 7 --- [ry-scheduling-2] i.g.j.r.service.ZuulUpdaterService       : Enter: updateZuulRoutes() with argument[s] = []
DEBUG 7 --- [ry-scheduling-2] i.g.j.r.service.ZuulUpdaterService       : Exit: updateZuulRoutes() with result = null
DEBUG 7 --- [ry-scheduling-2] i.g.j.r.service.ZuulUpdaterService       : Enter: updateZuulRoutes() with argument[s] = []
DEBUG 7 --- [ry-scheduling-2] i.g.j.r.service.ZuulUpdaterService       : Exit: updateZuulRoutes() with result = null
INFO 7 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Disable delta property : false
INFO 7 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Single vip registry refresh property : null
INFO 7 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Force full registry fetch : false
INFO 7 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Application is null : false
INFO 7 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Registered Applications size is zero : true
INFO 7 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Application version is -1: false
INFO 7 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : Getting all instance registry info from the eureka server
INFO 7 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient    : The response status is 200

上述情况是否表明有什么问题?

jhipster netflix-eureka jhipster-registry
1个回答
0
投票

没什么好担心的,如果你看ZuulUpdaterService的源码,你会发现。

@Scheduled(fixedDelay = 5_000)
public void updateZuulRoutes() {

所以每隔5秒,这个方法就会被运行一次 JHipster的LoggingAspect就会记录下它的结果,因为它是一个void方法,所以会打印出来。Exit: updateZuulRoutes() with result = null.

可以随时调整logback-spring.xml中的日志配置。

© www.soinside.com 2019 - 2024. All rights reserved.