springboot 非端口模式启动

@SpringBootApplication
@ComponentScan(basePackages = {"demo.test"})
public class ReportApplication {
    private static final Logger logger = LoggerFactory.getLogger(ReportApplication.class);
    public static void main(String[] args) {
        Thread.currentThread().setName("ReportApplication Main Thread");
        new SpringApplicationBuilder(ReportApplication.class)
                .web(WebApplicationType.NONE)
                .run(args);
    }
}
原文地址:https://www.cnblogs.com/PythonOrg/p/13895694.html