首页 > 解决方案 > 弹簧执行器端点似乎被调用了两次

问题描述

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

{"@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}

有谁知道为什么我得到了两条关于访问健康端点但来自不同线程的相同记录?

标签: springspring-bootspring-boot-actuatorhealth-monitoring

解决方案


推荐阅读