簡體   English   中英

JHipster Registry / Spring Eureka Server 配置問題

[英]JHipster Registry / Spring Eureka Server configuration issues

我似乎沒有正確配置初始 JHipster Registry 實例(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

以上是否表明有問題?

不用擔心,如果您查看 ZuulUpdaterService 源代碼,您會看到:

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

所以每隔 5 秒,這個方法就會運行一次,JHipster 的 LoggingAspect 會記錄它的結果,因為它是一個 void 方法,它會打印Exit: updateZuulRoutes() with result = null

隨意調整 logback-spring.xml 中的日志記錄配置

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM