2019-01-0415:38:24.445 INFO 14840 --- [ main] hanumoka.portfolio.nao.NaoApplication : Starting NaoApplication on DESKTOP-EU9BLID with PID 14840 (C:\Users\amagr\Desktop\Project\nao\target\classes started by amagr in C:\Users\amagr\Desktop\Project\nao) 2019-01-0415:38:24.449 INFO 14840 --- [ main] hanumoka.portfolio.nao.NaoApplication : No active profile set, falling back to default profiles: default 2019-01-0415:38:25.519 WARN 14840 --- [ main] io.undertow.websockets.jsr : UT026010: Buffer pool was notset on WebSocketDeploymentInfo, the default pool will be used 2019-01-0415:38:25.539 INFO 14840 --- [ main] io.undertow.servlet : Initializing Spring embedded WebApplicationContext 2019-01-0415:38:25.539 INFO 14840 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in1043 ms 2019-01-0415:38:25.729 INFO 14840 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2019-01-0415:38:25.931 INFO 14840 --- [ main] org.xnio : XNIO version 3.3.8.Final 2019-01-0415:38:25.940 INFO 14840 --- [ main] org.xnio.nio : XNIO NIO Implementation Version 3.3.8.Final 2019-01-0415:38:25.988 INFO 14840 --- [ main] o.s.b.w.e.u.UndertowServletWebServer : Undertow started on port(s) 1290 (http) with context path '' 포트:1290 2019-01-0415:38:25.991 INFO 14840 --- [ main] hanumoka.portfolio.nao.NaoApplication : Started NaoApplication in1.854 seconds (JVM running for2.285) ============ApplicationRunner ============CommandLineRunner1 ============ApplicationRunner2
springboot 구동시 시작된 뒤, ApplicationRunner, CommandLineRunner 인터페이스로 구현한 run메소드가 동작하는 것을 확인 할 수 있다. 위 처럼, Order어노테이션으로 이들간의 동작 순서를 지정 할 수도 있다.