SpringBoot执行器端点Actuator Endpoint
发布日期:2021-05-04 20:40:37 浏览次数:31 分类:精选文章

本文共 309 字,大约阅读时间需要 1 分钟。

比较常用的Endpoint

URL 作用
/actuator/health 健康检查
/actuator/beans 查看容器中所有的Bean
/actuator/mapping 查看Web的URL映射
/actuator/env 查看环境信息

默认/actuator/health/actuator/info是可以通过Web访问,其他的需要解禁

在配置文件中可以设置可以访问哪些Endpoint

# 访问所有management.endpoints.web.exposure.include=*# 访问个别management.endpoints.web.exposure.include=health,beans

在这里插入图片描述

上一篇:SpringBoot中mybatis配置多数据源
下一篇:SpringBoot部署项目到Linux上传文件路径问题

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2025年03月21日 02时58分50秒