You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit switches the default value for the `spring.jmx.enabled`
configuration property.
JMX is now disabled by default and can be enabled with
`spring.jmx.enabled=true`.
Closesgh-16090
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/integrationtest/JmxEndpointIntegrationTests.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ public class JmxEndpointIntegrationTests {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/KafkaMetricsAutoConfigurationTests.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jmx/JmxAutoConfiguration.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -42,15 +42,15 @@
42
42
* {@link EnableAutoConfiguration Auto-configuration} to enable/disable Spring's
43
43
* {@link EnableMBeanExport} mechanism based on configuration properties.
44
44
* <p>
45
-
* To disable auto export of annotation beans set {@code spring.jmx.enabled: false}.
45
+
* To enable auto export of annotation beans set {@code spring.jmx.enabled: true}.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -463,7 +463,7 @@
463
463
"name": "spring.jmx.enabled",
464
464
"type": "java.lang.Boolean",
465
465
"description": "Expose management beans to the JMX domain.",
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/integration/IntegrationAutoConfigurationTests.java
+20-21
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2018 the original author or authors.
2
+
* Copyright 2012-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -101,31 +101,30 @@ public void parentContext() {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/DataSourceJmxConfigurationTests.java
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2018 the original author or authors.
2
+
* Copyright 2012-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -60,7 +60,7 @@ public class DataSourceJmxConfigurationTests {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jmx/JmxAutoConfigurationTests.java
+3-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2018 the original author or authors.
2
+
* Copyright 2012-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -63,7 +63,8 @@ public void testDefaultMBeanExport() {
0 commit comments