【发布时间】:2021-08-10 21:04:59
【问题描述】:
我通过将上下文路径设置为 /myservice 来运行我的 springboot 应用程序。这导致附加我在 URL-http://localhost:8080/myservice/actuator/ 上公开的所有执行器端点,而我只想要 http://localhost:8080/actuator/。 有没有办法告诉 springboot 忽略附加上下文路径到执行器端点(通过 DispatcherServlet 或 CXFServlet 或任何东西) 请帮忙。
【问题讨论】:
标签: spring-boot contextpath actuator