Migrate Date to LocalDateTime for Spring Batch timestamp methods
MSALIn Spring Batch 5.0, StepExecution and JobExecution timestamp methods (getStartTime(), getEndTime(), getCreateTime(), getLastUpdated()) return java.time.LocalDateTime instead of java.util.Date. This recipe updates variable declarations accordingly.
org. openrewrite. java. spring. batch. MigrateStepExecutionTimestampTypesmod run . --recipe= org. openrewrite. java. spring. batch. MigrateStepExecutionTimestampTypesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.