From 8c450c4c753ca606ce31b8e369376c0f0f30ec5c Mon Sep 17 00:00:00 2001 From: Glenn Renfro Date: Mon, 28 Nov 2022 08:36:36 -0500 Subject: [PATCH] Updated to set the order for TaskRepositoryDatabaseInitializerDetector This is a workaround until https://github.com/spring-projects/spring-boot/issues/33374 is resolved --- .../TaskRepositoryDatabaseInitializerDetector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-task-core/src/main/java/org/springframework/cloud/task/configuration/TaskRepositoryDatabaseInitializerDetector.java b/spring-cloud-task-core/src/main/java/org/springframework/cloud/task/configuration/TaskRepositoryDatabaseInitializerDetector.java index 832a511a3..5ed56cc81 100644 --- a/spring-cloud-task-core/src/main/java/org/springframework/cloud/task/configuration/TaskRepositoryDatabaseInitializerDetector.java +++ b/spring-cloud-task-core/src/main/java/org/springframework/cloud/task/configuration/TaskRepositoryDatabaseInitializerDetector.java @@ -30,7 +30,7 @@ */ class TaskRepositoryDatabaseInitializerDetector extends AbstractBeansOfTypeDatabaseInitializerDetector { - private static final int PRECEDENCE = Ordered.LOWEST_PRECEDENCE - 100; + private static final int PRECEDENCE = Ordered.LOWEST_PRECEDENCE - 99; @Override protected Set> getDatabaseInitializerBeanTypes() {