Expose additional admin features

Improve SpringApplicationAdminMXBean to expose additional information:

* Whether the application uses an embedded container
* The properties exposed by the `Environment`

This allows to know if the application is web-based and the HTTP port
on which it is running.

Closes gh-3067
This commit is contained in:
Stephane Nicoll
2015-06-04 17:35:09 +02:00
parent c177a774a5
commit b5d49b3099
5 changed files with 114 additions and 13 deletions

View File

@@ -228,6 +228,9 @@ It is possible to enable admin-related features for the application by specifyin
on the platform `MBeanServer`. You could use this feature to administer your Spring Boot
application remotely. This could also be useful for any service wrapper implementation.
TIP: If you want to know on which HTTP port the application is running, get the property
with key `local.server.port`.
NOTE: Take care when enabling this feature as the MBean exposes a method to shutdown the
application.