Deprecate the use of spring.cloud.task.batch.listener.enable
replace it with spring.cloud.task.batch.listener.enabled resolves #379
This commit is contained in:
committed by
Michael Minella
parent
16efd486d8
commit
b6f6d68385
@@ -32,11 +32,14 @@ import org.springframework.context.annotation.Configuration;
|
||||
/**
|
||||
* Provides auto configuration for the {@link TaskBatchExecutionListener}.
|
||||
*
|
||||
* The spring.cloud.task.batch.listener.enable is deprecated,
|
||||
* spring.cloud.task.batch.listener.enabled should be used.
|
||||
*
|
||||
* @author Michael Minella
|
||||
*/
|
||||
@Configuration
|
||||
@ConditionalOnBean({Job.class})
|
||||
@ConditionalOnProperty(name = "spring.cloud.task.batch.listener.enable", havingValue = "true", matchIfMissing = true)
|
||||
@ConditionalOnProperty(name = {"spring.cloud.task.batch.listener.enable", "spring.cloud.task.batch.listener.enabled"}, havingValue = "true", matchIfMissing = true)
|
||||
public class TaskBatchAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user