用于获取所有请求映射的 Spring url 不再起作用



通常我可以使用以下网址获得网址映射概述: /application/mappings

现在我得到了一个 PageNotFound - No mapping found for HTTP request with URI [/application/mappings]在我的日志中,Response Status: 404 (Not Found)在我的浏览器中。

其他 Spring url /application/autoconfig, /application/beans and /application/configprops也给出了同样的问题。

我正在使用 spring-boot 2.0.0.RELEASE。

执行器工件已添加到pom中:

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>

我做错了什么?

根据当前的 Spring Boot 2.0 文档,默认执行器端点的前缀为 /actuator ,而不是 /application 。这对 M4 来说是不同的,我认为他们在 M7 中改变了它。

M4 文档:

例如,默认情况下,运行状况终结点将映射到 /应用程序/健康。

M7 文档:

例如,默认情况下,运行状况终结点映射到 /执行器/健康

最新更新