05.Springboot离线新建环境

1.新建Maven项目
2.pom文件导入

org.springframework.boot
spring-boot-starter-parent
2.7.2



org.springframework.boot
spring-boot-starter-web


org.springframework.boot
spring-boot-starter-test


3.编写主启动类
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class,args);
}
}
4.编写主配置类

posted @ 2022-08-28 19:05  NIANER2011  阅读(189)  评论(0)    收藏  举报