package charViewer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Main class to bootstrap the Spring Context including the embedded webserver used to deliver the website. The
 * resources will be delivered automatically so no configuration required for now.
 */
@SpringBootApplication
public class ApplicationStarter {

  public static void main(final String... args) {
    SpringApplication.run(ApplicationStarter.class, args);
  }
}

@@ -133,16 +133,81 @@
 ication;
+%0Aimport org.springframework.boot.system.ApplicationPidFileWriter;
 %0A%0A/**%0A *
@@ -536,39 +536,131 @@
 tion
-.run(ApplicationStarter.class, 
+ app = new SpringApplication(ApplicationStarter.class);%0A    app.addListeners(new ApplicationPidFileWriter());%0A%0A    app.run(
 args

write PID file