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);
    }
}
posted @ 2020-10-29 11:11  SpecialSpeculator  阅读(173)  评论(0编辑  收藏  举报