Last active
March 27, 2018 12:05
-
-
Save aarshtalati/94a5a219e3d393ea9f707327b016ec4f to your computer and use it in GitHub Desktop.
SpringBootApplication java class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package edu.gatech.epidemics; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.CommandLineRunner; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
/** | |
* @author atalati | |
*/ | |
@SpringBootApplication | |
public class EpidemicsApplication implements CommandLineRunner{ | |
@Autowired | |
AppConfigBean appConfigBean; | |
public static void main(String[] args) { | |
SpringApplication app = new SpringApplication(EpidemicsApplication.class); | |
app.run(); | |
} | |
@Override | |
public void run(String... args) throws Exception { | |
System.out.println(appConfigBean.getDb_url()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment