Skip to content

Commit 8a96035

Browse files
authored
Logged the arguements of run method
1 parent 9241c90 commit 8a96035

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-boot/src/main/java/com/baeldung/springbootnonwebapp/SpringBootConsoleApplication.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,8 @@ public static void main(String[] args) {
3131
@Override
3232
public void run(String... args) throws Exception {
3333
LOG.info("EXECUTING : command line runner");
34+
for (int i = 0; i < args.length; ++i) {
35+
LOG.info("args[{}]: {}", i, args[i]);
36+
}
3437
}
3538
}

0 commit comments

Comments
 (0)