![]() |
If you are developing a web application, Spring Boot Actuator auto-configures all
enabled endpoints to be exposed over HTTP. The default convention is to use the Sometimes, it is useful to customize the prefix for the management endpoints. For
example, your application might already use management.endpoints.web.base-path=/manage The preceding
If you want to map endpoints to a different path, you can use the
The following example remaps application.properties. management.endpoints.web.base-path=/ management.endpoints.web.path-mapping.health=healthcheck
Exposing management endpoints by using the default HTTP port is a sensible choice for cloud-based deployments. If, however, your application runs inside your own data center, you may prefer to expose endpoints by using a different HTTP port. You can set the management.server.port=8081 When configured to use a custom port, the management server can also be configured with
its own SSL by using the various server.port=8443 server.ssl.enabled=true server.ssl.key-store=classpath:store.jks server.ssl.key-password=secret management.server.port=8080 management.server.ssl.enabled=false Alternatively, both the main server and the management server can use SSL but with different key stores, as follows: server.port=8443 server.ssl.enabled=true server.ssl.key-store=classpath:main.jks server.ssl.key-password=secret management.server.port=8080 management.server.ssl.enabled=true management.server.ssl.key-store=classpath:management.jks management.server.ssl.key-password=secret You can customize the address that the management endpoints are available on by setting
the
The following example management.server.port=8081 management.server.address=127.0.0.1 If you do not want to expose endpoints over HTTP, you can set the management port to
management.server.port=-1 This can be achieved using the management.endpoints.web.exposure.exclude=*
|