You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently JobLauncherCommandLineRunner neither implments Ordered or have @Ordered annotation. Which mean it will get implicitly Ordered.LOWEST_PRECEDENCE.
This means one cannot define custom CommandLineRunner which is executed beforeJobLauncherCommandLineRunner without overriding the jobLauncherCommandLineRunner bean defined in BatchAutoConfiguration. This affects the official getting started guide spring-guides/gs-batch-processing#8.
I could do a pull request if you agree on default order value. Not sure what is the practice in such cases, but since it can be number between Integer.MIN_VALUE and Integer.MAX_VALUE, and there are no other CommandLineRunners in autoconfigure module - probably 0 should be OK.
The text was updated successfully, but these errors were encountered:
Currently
JobLauncherCommandLineRunner
neither implmentsOrdered
or have@Ordered
annotation. Which mean it will get implicitlyOrdered.LOWEST_PRECEDENCE
.This means one cannot define custom
CommandLineRunner
which is executed beforeJobLauncherCommandLineRunner
without overriding the jobLauncherCommandLineRunner bean defined inBatchAutoConfiguration
. This affects the official getting started guide spring-guides/gs-batch-processing#8.I could do a pull request if you agree on default order value. Not sure what is the practice in such cases, but since it can be number between
Integer.MIN_VALUE
andInteger.MAX_VALUE
, and there are no otherCommandLineRunner
s in autoconfigure module - probably0
should be OK.The text was updated successfully, but these errors were encountered: