**
一、maven配置
**
maven路径/conf/settings.xml添加下列依赖
nexus-aliyun
central
Nexus aliyun
http://maven.aliyun.com/nexus/content/groups/public
**
二、添加依赖
**
springboot项目工作区间\pom.xml添加下列依赖
org.springframework.boot
spring-boot-starter-parent
2.3.4.RELEASE
org.springframework.boot
spring-boot-starter-web
**
三、创建主程序 主程序类 @SpringBootApplication:这是一个SpringBoot应用
**
@SpringBootApplication
public class MainApplication {
public static void main(String[] args) {
SpringApplication.run(MainApplication.class,args);
}
}
**
四、简化配置
**
springboot项目工作区间\src\main\resources
application.properties
**
五、简化部署
**
springboot项目工作区间\pom.xml添加下列依赖
org.springframework.boot
spring-boot-maven-plugin