Gutter Overflow Asked: 2025-04-22 12:15:11 +0800 CST2025-04-22 12:15:11 +0800 CST 2025-04-22 12:15:11 +0800 CST 我们可以在 Spring 中定义一个以 /actuator 开头的端点吗?哪一个会优先? 772 如果我们为“localhost:8080/actuator/health”定义自己的请求映射,它会被注册吗?它会调用 Spring 执行器吗? spring 1 个回答 Voted Best Answer Stomf 2025-04-22T20:15:53+08:002025-04-22T20:15:53+08:00 我在 Spring Boot 3.4.4 中使用 spring-boot-starter-actuator 尝试了此操作。应用程序启动正常,执行器路径显示了库执行器,并忽略了控制器方法。 我原本以为这会引发模糊映射异常,但事实并非如此。
我在 Spring Boot 3.4.4 中使用 spring-boot-starter-actuator 尝试了此操作。应用程序启动正常,执行器路径显示了库执行器,并忽略了控制器方法。
我原本以为这会引发模糊映射异常,但事实并非如此。