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);
}
}
原创:做时间的朋友