【发布时间】:2021-02-12 14:50:57
【问题描述】:
大家早上好,
希望这是一个非常简单的问题。
如何支持 spring-boot-actuator 端点?
我可以看到其中大多数的@ReadOperation 和@WriteOperation,但我看不到支持基本 URL 的位置或支持创建“http://localhost:8080/actuator”端点的技术。
当我导航到地址“http://localhost:8080/actuator”而不是显示 404 或 500 时,我的项目确实显示了 JSON(我猜那是什么?)。
我想了解一下 spring-boot-actuator 项目的底层架构。 'http://localhost:8080/actuator' URL 处于活动状态,返回并显示数据。
这个 URL 似乎没有注释:
@ResponseBody
@RequestMapping
@GetMapping
@ReadOperation
千分尺项目似乎不支持“http://localhost:8080/actuator”。
我对执行器编程的工作原理感到非常困惑。
感谢大家的帮助。
【问题讨论】:
标签: spring-boot spring-boot-actuator