Disabling SpringApplicationAdmin for binders, as they are under the control of the main application

This commit is contained in:
Marius Bogoevici
2015-12-09 17:58:12 -05:00
parent 1336440533
commit a4fe3efaef

View File

@@ -111,6 +111,7 @@ public class DefaultBinderFactory<T> implements BinderFactory<T>, DisposableBean
defaultDomain += ".";
}
args.add("--spring.jmx.default-domain=" + defaultDomain + "binder." + configurationName);
args.add("--spring.application.admin.enabled=false");
SpringApplicationBuilder springApplicationBuilder =
new SpringApplicationBuilder()
.sources(binderConfiguration.getBinderType().getConfigurationClasses())