spring - 弹簧执行器端点似乎被调用了两次
问题描述
这不会以任何方式阻止我,只是好奇。今天在调试我的应用程序时,我遇到了一个奇怪的日志:
{"@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}
有谁知道为什么我得到了两条关于访问健康端点但来自不同线程的相同记录?
解决方案
推荐阅读
- r - 闪亮的 reactivePoll 重用多个数据库表名
- android-asynctask - 在单个 Android 项目中实现多个 SQLite ORM 库
- c - 关于在 C 中以特定格式打印数字的问题
- javascript - 通过 Axios 将文件发送到 Asp.net Core Api?
- javascript - 错误:无法使用来自另一个模块或领域的 GraphQLSchema“[object GraphQLSchema]”
- javascript - Use jqxGrid to render cell values that are objects?
- php - Display order customer note in Woocommerce email notifications
- amazon-web-services - 如何在 dynamoDB 中查询 TTL?
- azure-ad-b2c - 使用过时版本的 JQuery(版本 1.10.2)的 Azure B2C
- excel - Excel公式计算列中所有非空白单元格中的行数(不一定是行)