Package org.springframework.boot

Examples of org.springframework.boot.SpringApplication.addListeners()


public class Application {

  public static void main(String[] args) {

    SpringApplication springApplication = new SpringApplication(Application.class);
    springApplication.addListeners(new ApplicationPidListener("app.pid"));
    springApplication.run(args);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.