@Component
public class FirstRunner implements CommandLineRunner {
@Override
public void run(String... args) throws Exception {
    System.out.println("FirstRunner 실행");
}
@Component
public class SecondRunner implements CommandLineRunner {
@Override
public void run(String... args) throws Exception {
    System.out.println("SecondRunner 실행");
}


@Component
@Order(1)
public class FirstRunner implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        System.out.println("FirstRunner 실행");
    }
}

@Component
@Order(2)
public class SecondRunner implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        System.out.println("SecondRunner 실행");
    }
}