Spring Boot 2 执行器是否在外部工作 Tomcat

Does Spring Boot 2 Actuator work in external Tomcat

我有一个 Spring Boot 2 应用程序,它最初使用嵌入式 Tomcat 到 运行。在项目中包含 Actuator,我可以做

curl 'http://localhost:8080/actuator/health'

并得到回应。

现在我已将应用程序移动到一个 WAR 文件中以部署到外部 Tomcat (8.2.23),并且不再找到执行器端点。该应用程序本身仍然有效,但我无法访问暴露的执行器端点。

这是已知错误 ('feature'?),还是需要特殊配置?我目前没有尝试定义任何新的执行器端点。我也没有包含安全性。

在外部 tomcat 中部署时,应用程序的所有其余端点现在都将变为 http://localhost:8080/{Name of war file}/actual-end-point