<gh_stars>1-10
package org.eddy;

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

@SpringBootApplication
public class TaskApplicationStart {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(TaskApplicationStart.class);
        springApplication.addListeners(new ApplicationPidFileWriter("task.pid"));
        springApplication.run(args);
    }
}