From ad7ed1dbaefce3925c99780974181f53eaa1dbd0 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 10 Jun 2015 11:26:39 -0700 Subject: [PATCH] Formatting --- .../admin/SpringApplicationAdminJmxAutoConfiguration.java | 4 ++-- .../src/main/asciidoc/spring-boot-features.adoc | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/admin/SpringApplicationAdminJmxAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/admin/SpringApplicationAdminJmxAutoConfiguration.java index 5ade73787b0..058f649ad00 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/admin/SpringApplicationAdminJmxAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/admin/SpringApplicationAdminJmxAutoConfiguration.java @@ -43,8 +43,8 @@ import org.springframework.jmx.export.MBeanExporter; public class SpringApplicationAdminJmxAutoConfiguration { /** - * The property to use to customize the {@code ObjectName} of the application - * admin mbean. + * The property to use to customize the {@code ObjectName} of the application admin + * mbean. */ private static final String JMX_NAME_PROPERTY = "spring.application.admin.jmx-name"; diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 1f1d8bda06e..cbdf1ce5cb7 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -218,18 +218,21 @@ be used. In addition, beans may implement the `org.springframework.boot.ExitCodeGenerator` interface if they wish to return a specific exit code when the application ends. + + [[boot-features-application-admin]] === Admin features It is possible to enable admin-related features for the application by specifying the -`spring.application.admin.enabled` property. For now, this exposes the +`spring.application.admin.enabled` property. This exposes the {sc-spring-boot}/admin/SpringApplicationAdminMXBean.{sc-ext}[`SpringApplicationAdminMXBean`]` 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. -NOTE: Be careful when enabling this feature as the MBean exposes a method to shutdown the +NOTE: Take care when enabling this feature as the MBean exposes a method to shutdown the application. + [[boot-features-external-config]] == Externalized Configuration Spring Boot allows you to externalize your configuration so you can work with the same