简体   繁体   English

spring 启动执行器健康检查端点,在生产服务器的浏览器中没有信息

[英]spring boot actuator health check endpoint with no information in browser in Production server

We are using Spring Boot 1.5.2 where We are using Spring Boot starter Actuator, when we are hitting URL with Health check endpoint we are getting status= up, but we want blank information(information should not be shown there in browser)(any information will not be available for any public user).我们正在使用 Spring 启动 1.5.2 我们正在使用 Spring 启动启动器执行器,当我们点击 URL 时,我们不应该在浏览器中显示空白信息=任何状态信息(但我们不应该在浏览器中显示状态信息=空白信息)任何公共用户都无法获得信息)。

By default, actuator endpoints are exposed on the same port that serves regular HTTP traffic.默认情况下,执行器端点暴露在为常规 HTTP 流量提供服务的同一端口上。 You can set different level of security for management Endpoints.您可以为管理端点设置不同的安全级别。 Here is a details guide about security of management EndPoint. 是有关管理端点安全性的详细指南。

You can also run your management API in different port and do not make this port open for public.您也可以在不同的端口上运行您的管理 API,并且不要将此端口公开。 Just use只需使用

management.port=8085

We are using Spring Boot 1.5.2 where We are using Spring Boot starter Actuator, when we are hitting URL with Health check endpoint we are getting status= up, but we want blank information(information should not be shown there in browser)(any information will not be available for any public user).我们正在使用 Spring 启动 1.5.2 我们正在使用 Spring 启动启动器执行器,当我们点击 URL 时,我们不应该在浏览器中显示空白信息=任何状态信息(但我们不应该在浏览器中显示状态信息=空白信息)任何公共用户都无法获得信息)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM