File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 22
22
import org .springframework .boot .autoconfigure .condition .ConditionalOnClass ;
23
23
import org .springframework .boot .autoconfigure .condition .ConditionalOnExpression ;
24
24
import org .springframework .boot .autoconfigure .condition .ConditionalOnMissingBean ;
25
+ import org .springframework .boot .autoconfigure .condition .SearchStrategy ;
25
26
import org .springframework .boot .autoconfigure .jmx .JmxAutoConfiguration ;
26
27
import org .springframework .context .annotation .Bean ;
27
28
import org .springframework .context .annotation .Configuration ;
28
29
import org .springframework .integration .config .EnableIntegration ;
29
30
import org .springframework .integration .jmx .config .EnableIntegrationMBeanExport ;
30
- import org .springframework .integration .jmx . config . IntegrationMBeanExportConfiguration ;
31
+ import org .springframework .integration .monitor . IntegrationMBeanExporter ;
31
32
import org .springframework .jmx .support .MBeanServerFactoryBean ;
32
33
33
34
/**
@@ -50,7 +51,7 @@ protected static class IntegrationConfiguration {
50
51
51
52
@ Configuration
52
53
@ ConditionalOnClass (EnableIntegrationMBeanExport .class )
53
- @ ConditionalOnMissingBean (IntegrationMBeanExportConfiguration .class )
54
+ @ ConditionalOnMissingBean (value = IntegrationMBeanExporter .class , search = SearchStrategy . CURRENT )
54
55
@ ConditionalOnExpression ("${spring.jmx.enabled:true}" )
55
56
@ EnableIntegrationMBeanExport (defaultDomain = "${spring.jmx.default_domain:}" , server = "${spring.jmx.server:mbeanServer}" )
56
57
protected static class IntegrationJmxConfiguration {
Original file line number Diff line number Diff line change 22
22
import org .springframework .boot .autoconfigure .condition .ConditionalOnClass ;
23
23
import org .springframework .boot .autoconfigure .condition .ConditionalOnExpression ;
24
24
import org .springframework .boot .autoconfigure .condition .ConditionalOnMissingBean ;
25
+ import org .springframework .boot .autoconfigure .condition .SearchStrategy ;
25
26
import org .springframework .context .annotation .Bean ;
26
27
import org .springframework .context .annotation .Configuration ;
27
28
import org .springframework .context .annotation .EnableMBeanExport ;
42
43
public class JmxAutoConfiguration {
43
44
44
45
@ Configuration
45
- @ ConditionalOnMissingBean ({ MBeanExporter .class } )
46
+ @ ConditionalOnMissingBean (value = MBeanExporter .class , search = SearchStrategy . CURRENT )
46
47
@ EnableMBeanExport (defaultDomain = "${spring.jmx.default_domain:}" , server = "${spring.jmx.server:mbeanServer}" )
47
48
public static class MBeanExport {
48
49
}
You can’t perform that action at this time.
0 commit comments