I\'ve four CommandLineRunner to be executed in a specific order. Two of them are annotated as @Component and the other two are declared as Bean. I used the @Order annotatio