# 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`。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jack80342.gitbook.io/spring-boot/v.-spring-boot-actuator/51.-monitoring-and-management-over-http/51.1-customizing-the-management-endpoint-paths.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
