一、搭建后台基础架构
1.1后台项目结构搭建内容
1)通过Idea自带的构建器构建SpringBoot项目
2)配置后台项目的热启动
3)引入lombok简化开发
项目搭建参考链接:https://www.kuangstudy.com/bbs/1349561059320635393
项目结构参考链接:https://www.kuangstudy.com/bbs/1349561059320635393
热部署参考链接:https://blog.csdn.net/chachapaofan/article/details/88697452
1.1 项目结构
![](https://i-blog.csdnimg.cn/blog_migrate/1a7f6cd2c357a6ba1bbb880567a8dc55.png)
1.2 pom依赖(采用SpringBoot最新版本2.4.3)
<!--web-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!--lommbok-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<!--test-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!--devtools热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>