public static void main(String[] args) {
// 可以将下面这句话,用其它方式表述
// 方法一:
SpringApplication.run(Spring001helloApplication.class, args);
//
// 方法二:
// SpringApplication app=new SpringApplication(Spring001helloApplication.class);
// app.setBannerMode(Banner.Mode.OFF);
// 也可以用这种方式去掉banner,或者是给application加参数。
// app.run(args);
//
// 方法三:
// new SpringApplicationBuilder(Spring001helloApplication.class)
// .bannerMode(Banner.Mode.OFF)
// .run(args);
}
springboot启动应用程序的三种方式
于 2022-03-16 15:55:40 首次发布