小编Shr*_*hal的帖子

SpringBoot 将上下文路径添加到 Actuator 端点

我通过将上下文路径设置为 /myservice 来运行我的 springboot 应用程序。这会导致附加在 URL- http://localhost:8080/myservice/actuator/ 上公开的所有执行器端点,而我只需要 http://localhost:8080/actuator/。有没有办法告诉 springboot 忽略附加上下文路径到执行器端点(通过 DispatcherServlet 或 CXFServlet 或任何东西)请帮忙。

contextpath spring-boot spring-boot-actuator

6
推荐指数
1
解决办法
3293
查看次数