Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Last active November 4, 2017 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chathurangat/591bdf2245dad953f58f4693c07378bf to your computer and use it in GitHub Desktop.
Save chathurangat/591bdf2245dad953f58f4693c07378bf to your computer and use it in GitHub Desktop.
package com.springbootdev.samples.springbootcommandlineapplication;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringBootCommandlineApplication implements CommandLineRunner {
private static final Logger LOGGER = LoggerFactory.getLogger(SpringBootCommandlineApplication.class);
public static void main(String[] args) {
SpringApplication.run(SpringBootCommandlineApplication.class, args);
}
@Override
public void run(String... strings) throws Exception {
LOGGER.info(" ***** Greetings from www.SpringBootDev.com ***** ");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment