We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
使用Endpoints.UseHealth 可以为应用程序及路由添加健康检查的Endpoint用于Http输出应用状态
func main() { YoyoGo.CreateDefaultBuilder(func(rb router.IRouterBuilder) { endpoints.UseHealth(rb) }).Build().Run() //默认端口号 :8080 }
/actuator/health
{ "status": "UP" }