Skip to content

Instantly share code, notes, and snippets.

@aarshtalati
Last active March 27, 2018 12:05
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 aarshtalati/94a5a219e3d393ea9f707327b016ec4f to your computer and use it in GitHub Desktop.
Save aarshtalati/94a5a219e3d393ea9f707327b016ec4f to your computer and use it in GitHub Desktop.
SpringBootApplication java class
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