Move management.jmx to management.endpoints.jmx

For consistency with #10053, this commit moves the JMX specific endpoint
properties to `management.endpoints.jmx`.
This commit is contained in:
Stephane Nicoll 2017-08-22 11:46:38 +02:00
parent 68fcea7b9a
commit ac4219b1d8
3 changed files with 10 additions and 10 deletions

View File

@ -28,7 +28,7 @@ import org.springframework.util.StringUtils;
* @author Stephane Nicoll * @author Stephane Nicoll
* @since 2.0.0 * @since 2.0.0
*/ */
@ConfigurationProperties("management.jmx") @ConfigurationProperties("management.endpoints.jmx")
public class JmxEndpointExporterProperties { public class JmxEndpointExporterProperties {
/** /**

View File

@ -1238,6 +1238,11 @@ content into your application; rather pick only the properties that you need.
management.endpoints.cors.exposed-headers= # Comma-separated list of headers to include in a response. management.endpoints.cors.exposed-headers= # Comma-separated list of headers to include in a response.
management.endpoints.cors.max-age=1800 # How long, in seconds, the response from a pre-flight request can be cached by clients. management.endpoints.cors.max-age=1800 # How long, in seconds, the response from a pre-flight request can be cached by clients.
# ENDPOINTS JMX CONFIGURATION ({sc-spring-boot-actuator}/autoconfigure/endpoint.infrastructure/JmxEndpointExporterProperties.{sc-ext}[JmxEndpointExporterProperties])
management.endpoints.jmx.domain=org.springframework.boot # Endpoints JMX domain name. Fallback to 'spring.jmx.default-domain' if set.
management.endpoints.jmx.static-names=false # Additional static properties to append to all ObjectNames of MBeans representing Endpoints.
management.endpoints.jmx.unique-names=false # Ensure that ObjectNames are modified in case of conflict.
# HEALTH INDICATORS # HEALTH INDICATORS
management.health.db.enabled=true # Enable database health check. management.health.db.enabled=true # Enable database health check.
management.health.cassandra.enabled=true # Enable cassandra health check. management.health.cassandra.enabled=true # Enable cassandra health check.
@ -1267,11 +1272,6 @@ content into your application; rather pick only the properties that you need.
management.info.git.enabled=true # Enable git info. management.info.git.enabled=true # Enable git info.
management.info.git.mode=simple # Mode to use to expose git information. management.info.git.mode=simple # Mode to use to expose git information.
# JMX ENDPOINT ({sc-spring-boot-actuator}/autoconfigure/endpoint.infrastructure/JmxEndpointExporterProperties.{sc-ext}[JmxEndpointExporterProperties])
management.jmx.domain=org.springframework.boot # Endpoints JMX domain name. Fallback to 'spring.jmx.default-domain' if set.
management.jmx.static-names=false # Additional static properties to append to all ObjectNames of MBeans representing Endpoints.
management.jmx.unique-names=false # Ensure that ObjectNames are modified in case of conflict.
# JOLOKIA ({sc-spring-boot-actuator}/autoconfigure/jolokia/JolokiaProperties.{sc-ext}[JolokiaProperties]) # JOLOKIA ({sc-spring-boot-actuator}/autoconfigure/jolokia/JolokiaProperties.{sc-ext}[JolokiaProperties])
management.jolokia.config.*= # Jolokia settings. See the Jolokia manual for details. management.jolokia.config.*= # Jolokia settings. See the Jolokia manual for details.
management.jolokia.enabled=true # Enable Jolokia. management.jolokia.enabled=true # Enable Jolokia.

View File

@ -742,16 +742,16 @@ The name of the MBean is usually generated from the `id` of the endpoint. For ex
the `health` endpoint is exposed as `org.springframework.boot:type=Endpoint,name=Health`. the `health` endpoint is exposed as `org.springframework.boot:type=Endpoint,name=Health`.
If your application contains more than one Spring `ApplicationContext` you may find that If your application contains more than one Spring `ApplicationContext` you may find that
names clash. To solve this problem you can set the `management.jmx.unique-names` property names clash. To solve this problem you can set the `management.endpoints.jmx.unique-names`
to `true` so that MBean names are always unique. property to `true` so that MBean names are always unique.
You can also customize the JMX domain under which endpoints are exposed. Here is an You can also customize the JMX domain under which endpoints are exposed. Here is an
example `application.properties`: example `application.properties`:
[source,properties,indent=0] [source,properties,indent=0]
---- ----
management.jmx.domain=com.example.myapp management.endpoints.jmx.domain=com.example.myapp
management.jmx.unique-names=true management.endpoints.jmx.unique-names=true
---- ----