SpringBoot启动非web程序方式

package com.test.demo;

import org.springframework.boot.SpringApplication;

import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication

public class DemoApplication {

    public static void main(String[] args) {

        SpringApplication springApplication = new SpringApplication(DemoApplication.class);

        springApplication.addListeners(new StartUpListener());

        springApplication.run(args);

}

}


# tset

```

print "hello"

```

你可能感兴趣的:(SpringBoot启动非web程序方式)