Skip to content

Instantly share code, notes, and snippets.

@kappaj2
kappaj2 / DriveScannerApplication.java
Created February 28, 2017 15:35
Creating a bean that will be executed when SpringBoot starts the main method.
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
@SpringBootApplication
public class DriveScannerApplication {
private static Logger logger = LoggerFactory.getLogger(DriveScannerApplication.class);