当前位置: 首页 > 知识库问答 >
问题:

无法访问Spring引导执行器“/执行器”endpoint

扈昀
2023-03-14
{"timestamp":1455929182552,"status":404,"error":"Not Found","message":"No message available","path":"/actuator"}

共有1个答案

冯胤
2023-03-14

从spring boot版本2.0.1开始,使用below属性就可以工作了

management.endpoints.web.exposure.include=<comma separated endpoints you wish to expose>

如果您不关心安全性,则可以使用*通配符在web上公开所有执行器endpoint。

此外,endpoint似乎也从以前的版本中移动了。为了前任。如果希望使用bean,那么现在就有了/acture/beansendpoint。

 类似资料:
  • 如何访问http://localhost:8081/Actuatorendpoint?

  • 我尝试在Spring启动中使用执行器endpoint。应用程序运行平稳。我的pom文件如下所示: 这是应用程序的内容。属性文件: 这是我的Spring Boot应用程序的开始: 每当我尝试通过键入连接/health、/Info或/metricsendpoint时http://localhost:8080/health,HTTP请求传输到http://localhost:8080/showMyLog

  • 我尝试在配置文件中禁用生产环境的所有执行器endpoint: 它适用于除/info以外的所有endpoint。如何关闭给定环境的所有endpoint? 更新: 我正在做的项目也是Eureka的客户。在Spring Cloud Netflix的文档Status Page and Health Indicator一节(http://Cloud.Spring.io/spring-cloud-netfli

  • 我有一个使用spring Boot1.4.2和CXF JAXR的项目设置。我想把Spring引导执行器添加到项目中。这是我添加到项目中的配置。 在此之后创建一个WAR文件,然后将其部署在外部tomcat服务器中。但是当我访问健康URL localhost:8080/management/health时,它给出的是404 HTTP代码。服务器正常启动,我可以看到包含以下详细信息的日志: 运行状况配置

  • 详情: 我要访问的是“执行器”endpoint,而不是spring boot Acture(localhost:8080/acture)提供的其他endpoint 是,我已尝试在属性文件中手动启用该终结点(endpoints.enabled=true或endpoints.actuator.enabled=true) 是,我已尝试启用/禁用endpoint。敏感属性 是的,执行器的其他endpoin

  • {“Status”:“Down”} 我需要做什么才能显示自定义健康状况指示器?