From 915a6ef82f374ae81a817ba9b7ff150761219e6c Mon Sep 17 00:00:00 2001 From: Donovan Muller Date: Mon, 25 Mar 2019 17:25:48 +0200 Subject: [PATCH] Fix closecontextEnabled property reference Fixes #561 --- .../cloud/task/listener/TaskLifecycleListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-task-core/src/main/java/org/springframework/cloud/task/listener/TaskLifecycleListener.java b/spring-cloud-task-core/src/main/java/org/springframework/cloud/task/listener/TaskLifecycleListener.java index 6fa4fd22..18219a11 100644 --- a/spring-cloud-task-core/src/main/java/org/springframework/cloud/task/listener/TaskLifecycleListener.java +++ b/spring-cloud-task-core/src/main/java/org/springframework/cloud/task/listener/TaskLifecycleListener.java @@ -67,8 +67,8 @@ import org.springframework.util.StringUtils; * * Note: By default, the context will close at the completion of the task unless * other non-daemon threads keep it running. Programatic closing of the context can be - * configured via the property spring.cloud.task.closecontext.enabled - * (defaults to false). If the spring.cloud.task.closecontext.enabled is set + * configured via the property spring.cloud.task.closecontext_enabled + * (defaults to false). If the spring.cloud.task.closecontext_enabled is set * to true, then the context will be closed upon task completion regardless if non-daemon * threads are still running. Also if the context did not start, the FailedTask and * TaskEnd may not have all the dependencies met.