[JAVA-26046] Upgraded spring-scheduling to spring boot 3 (#14939)
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ public class DynamicSchedulingConfig implements SchedulingConfigurer {
|
||||
Instant nextExecutionTime =
|
||||
lastCompletionTime.orElseGet(Date::new).toInstant()
|
||||
.plusMillis(tickService.getDelay());
|
||||
return Date.from(nextExecutionTime);
|
||||
return Date.from(nextExecutionTime).toInstant();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ package com.baeldung.taskscheduler;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import jakarta.annotation.PostConstruct;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
|
||||
|
||||
Reference in New Issue
Block a user