From 96ec2d32ea0467abab26b33776667cb7c37533d3 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Wed, 2 Dec 2015 17:07:26 +0000 Subject: [PATCH] Switch of shutdown hook in bootstrap Fixes gh-61 --- .../cloud/bootstrap/BootstrapApplicationListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java index 0d557772..171551d8 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java @@ -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> sources = new ArrayList<>(); for (String name : names) {