Fix outdated references to server.context-path

Closes gh-11358
This commit is contained in:
Stephane Nicoll
2017-12-15 10:24:14 +01:00
parent 7566a197b0
commit 2ed162a0be
3 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ import org.springframework.util.StringUtils;
public class WebEndpointProperties {
/**
* Base path for Web endpoints. Relative to server.context-path or
* Base path for Web endpoints. Relative to server.servlet.context-path or
* management.server.context-path if management.server.port is configured.
*/
private String basePath = "/actuator";

View File

@@ -1116,7 +1116,7 @@ content into your application. Rather, pick only the properties that you need.
management.endpoints.web.enabled=true # Whether web endpoints are enabled
management.endpoints.web.expose=info,health # Endpoint IDs that should be exposed or '*' for all.
management.endpoints.web.exclude= # Endpoint IDs that should be excluded.
management.endpoints.web.base-path=/actuator # Base path for Web endpoints. Relative to server.context-path or management.server.context-path if management.server.port is configured.
management.endpoints.web.base-path=/actuator # Base path for Web endpoints. Relative to server.servlet.context-path or management.server.context-path if management.server.port is configured.
management.endpoints.web.path-mapping= # Mapping between endpoint IDs and the path that should expose them.
# ENDPOINTS CORS CONFIGURATION ({sc-spring-boot-actuator-autoconfigure}/endpoint/web/servlet/CorsEndpointProperties.{sc-ext}[CorsEndpointProperties])

View File

@@ -689,9 +689,9 @@ The preceding `application.properties` example changes the endpoint from
NOTE: Unless the management port has been configured to
<<production-ready-customizing-management-server-port,expose endpoints using a different
HTTP port>>, `management.endpoints.web.base-path` is relative to `server.context-path`.
If `management.server.port` is configured, `management.endpoints.web.base-path` is
relative to `management.server.servlet.context-path`.
HTTP port>>, `management.endpoints.web.base-path` is relative to
`server.servlet.context-path`. If `management.server.port` is configured,
`management.endpoints.web.base-path` is relative to `management.server.context-path`.