弹簧执行器端点似乎被调用了两次

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

这不会以任何方式阻止我,只是出于好奇。今天,在调试我的应用程序期间,我遇到了奇怪的日志:

{"@timestamp":"2020-04-17T16:30:55.128+0000","@version":"1","message":"Mapped to Actuator web endpoint 'health'","logger_name":"org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping","thread_name":"qtp250197932-43","level":"DEBUG","level_value":10000,"caller_class_name":"org.springframework.web.servlet.handler.AbstractHandlerMapping","caller_method_name":"getHandler","caller_file_name":"AbstractHandlerMapping.java","caller_line_number":414}
{"@timestamp":"2020-04-17T16:30:55.128+0000","@version":"1","message":"Mapped to Actuator web endpoint 'health'","logger_name":"org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping","thread_name":"qtp250197932-45","level":"DEBUG","level_value":10000,"caller_class_name":"org.springframework.web.servlet.handler.AbstractHandlerMapping","caller_method_name":"getHandler","caller_file_name":"AbstractHandlerMapping.java","caller_line_number":414}

有人知道为什么我从不同的线程获得两条相同的关于访问健康端点的记录吗?

spring spring-boot spring-boot-actuator health-monitoring
1个回答
0
投票

问题已在命令中解决。我的坏。

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