> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/v.-spring-boot-actuator/51.-monitoring-and-management-over-http/51.1-customizing-the-management-endpoint-paths.md).

# 51.1 自定义管理端点路径

有时给管理端点自定义前缀是有用的。例如，`/actuator`可能已被应用占用，你可以用`management.endpoints.web.base-path`属性来改变管理端点的前缀。如下所示：

```java
management.endpoints.web.base-path=/manage
```

以上的`application.properties`示例将把端点从`/actuator/{id}`改为`/manage/{id}`（比如，`/manage/info`）。

**注** `management.endpoints.web.base-path`相对于`server.servlet.context-path`，除非管理端口已经配置为[使用不同的HTTP端口暴露端点](https://docs.spring.io/spring-boot/docs/2.0.0.RELEASE/reference/htmlsingle/#production-ready-customizing-management-server-port)。如果已经配置了`management.server.port`，`management.endpoints.web.base-path`相对于`management.server.servlet.context-path`。
