From 8a960353db912cb743a7cef04c2ffbe78954d0d1 Mon Sep 17 00:00:00 2001 From: hemantvsn Date: Mon, 25 Jun 2018 14:27:30 +0530 Subject: [PATCH] Logged the arguements of run method --- .../springbootnonwebapp/SpringBootConsoleApplication.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-boot/src/main/java/com/baeldung/springbootnonwebapp/SpringBootConsoleApplication.java b/spring-boot/src/main/java/com/baeldung/springbootnonwebapp/SpringBootConsoleApplication.java index 5b0fda992d..9faa463378 100644 --- a/spring-boot/src/main/java/com/baeldung/springbootnonwebapp/SpringBootConsoleApplication.java +++ b/spring-boot/src/main/java/com/baeldung/springbootnonwebapp/SpringBootConsoleApplication.java @@ -31,5 +31,8 @@ public class SpringBootConsoleApplication implements CommandLineRunner { @Override public void run(String... args) throws Exception { LOG.info("EXECUTING : command line runner"); + for (int i = 0; i < args.length; ++i) { + LOG.info("args[{}]: {}", i, args[i]); + } } }