本文共 527 字,大约阅读时间需要 1 分钟。
SpringApplication.run(XX.class, args);
SpringApplication app = new SpringApplication(DemoApplication.class);app.setBannerMode(Banner.Mode.OFF);app.run();
1)new SpringApplicationBuilder(DemoApplication.class).bannerMode(Banner.Mode.CONSOLE).run();2)new SpringApplicationBuilder().sources(DemoApplication.class).bannerMode(Banner.Mode.OFF).run();3)new SpringApplicationBuilder().sources(DemoApplication.class).bannerMode(Banner.Mode.OFF).build(args).run();
转载地址:http://dtmix.baihongyu.com/