public static ConfigurableApplicationContext context = null; public static void main( String[] args ) throws Exception { //1. start application context = SpringApplication.run( App.class, args );
String selfUrl=App.context.getEnvironment().getProperty("ta.selfcheck.url"); }