Switch of shutdown hook in bootstrap

Fixes gh-61
This commit is contained in:
Dave Syer
2015-12-02 17:07:26 +00:00
parent fcc1249827
commit 96ec2d32ea

View File

@@ -111,7 +111,7 @@ public class BootstrapApplicationListener
// TODO: is it possible or sensible to share a ResourceLoader?
SpringApplicationBuilder builder = new SpringApplicationBuilder()
.profiles(environment.getActiveProfiles()).bannerMode(Mode.OFF)
.environment(bootstrapEnvironment)
.environment(bootstrapEnvironment).registerShutdownHook(false)
.properties("spring.application.name:" + configName).web(false);
List<Class<?>> sources = new ArrayList<>();
for (String name : names) {