如何在 Spring Boot 中禁用 Actuator 端点安全性?

答案解析

在配置文件中设置 management.endpoints.web.exposure.include=* 开放端点,再通过 security 配置关闭安全认证或配置允许匿名访问,实现禁用安全。