SpringBoot_SpringApplication_自定义启动类

1、创建springboot项目

2、代码

public static void main(String[] args) {
		
		SpringApplication app = new SpringApplication(Application.class);
		//是否启动banner打印
		app.setBannerMode(Mode.OFF);
		//*******
		app.run(args);
	}

猜你喜欢

转载自blog.csdn.net/qq_26837711/article/details/80431643
今日推荐