Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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