Update SpringBootConsoleApplication.java

This commit is contained in:
hemantvsn 2018-06-22 12:24:19 +05:30 committed by GitHub
parent 400f86a657
commit 9241c90660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -16,12 +16,12 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication @SpringBootApplication
public class SpringBootConsoleApplication implements CommandLineRunner { public class SpringBootConsoleApplication implements CommandLineRunner {
private static final Logger LOG = LoggerFactory.getLogger(SpringBootConsoleApplication.class); private static Logger LOG = LoggerFactory.getLogger(SpringBootConsoleApplication.class);
public static void main(String[] args) { public static void main(String[] args) {
LOG.info("STARTING THE APPLICATION"); LOG.info("STARTING THE APPLICATION");
SpringApplication.run(SpringBootConsoleApplication.class, args); SpringApplication.run(SpringBootConsoleApplication.class, args);
LOG.info("APPLICATION STARTED"); LOG.info("APPLICATION FINISHED");
} }
/** /**
@ -30,8 +30,6 @@ public class SpringBootConsoleApplication implements CommandLineRunner {
*/ */
@Override @Override
public void run(String... args) throws Exception { public void run(String... args) throws Exception {
LOG.info("START : command line runner");
LOG.info("EXECUTING : command line runner"); LOG.info("EXECUTING : command line runner");
LOG.info("END : command line runner");
} }
} }