Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
c1dea379
Commit
c1dea379
authored
Jun 10, 2015
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for SpringApplicationAdminMXBean
Closes gh-3179
parent
bfc0a3f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
additional-spring-configuration-metadata.json
...es/META-INF/additional-spring-configuration-metadata.json
+12
-0
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+4
-0
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+10
-0
No files found.
spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
View file @
c1dea379
...
...
@@ -17,6 +17,18 @@
"description"
:
"Whether subclass-based (CGLIB) proxies are to be created (true) as opposed to standard Java interface-based proxies (false)."
,
"defaultValue"
:
false
},
{
"name"
:
"spring.application.admin.enabled"
,
"type"
:
"java.lang.Boolean"
,
"description"
:
"Enable admin features for the application."
,
"defaultValue"
:
false
},
{
"name"
:
"spring.application.admin.jmx-name"
,
"type"
:
"java.lang.String"
,
"description"
:
"JMX name of the application admin MBean."
,
"defaultValue"
:
"org.springframework.boot:type=Admin,name=SpringApplication"
},
{
"name"
:
"spring.batch.job.enabled"
,
"type"
:
"java.lang.Boolean"
,
...
...
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
c1dea379
...
...
@@ -45,6 +45,10 @@ content into your application; rather pick only the properties that you need.
spring.main.show-banner=true
spring.main....= # see class for all properties
# ADMIN ({sc-spring-boot-autoconfigure}/admin/SpringApplicationAdminJmxAutoConfiguration.{sc-ext}[SpringApplicationAdminJmxAutoConfiguration])
spring.application.admin.enabled=false # enable admin features for the application
spring.application.admin.jmx-name=org.springframework.boot:type=Admin,name=SpringApplication # JMX name of the application admin MBean
# OUTPUT
spring.output.ansi.enabled=detect # Configure the ANSI output ("detect", "always", "never")
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
c1dea379
...
...
@@ -218,6 +218,16 @@ 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
{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
application.
[[boot-features-external-config]]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment