所有依赖的父依赖:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.1</version>
<relativePath/>
</parent>
springboot启动器:
<!-- Springboot启动器-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
springboot的web依赖,导入之后,运行时启动Tomcat,服务一直跑起来,不加这个服务一开,立马就就停止了
<!-- web依赖,导入之后,就可以使用web的功能,Tomcat就导进来了,服务就可以一直运行-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
springboot的Mybatis启动器
<!-- mybatis启动器 -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.2.2</version>
</dependency>
springboot测试相关依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
springboot热部署依赖,修改代码了不用重启项目保存即可刷新,就和前端页面一样实时更新
<!-- Spring boot 热部署 导入一个依赖即可-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
maven插件包,用来clear清楚,install打包等功能(放在build里面,不是依赖dependency)
<build>
<plugins>
<!-- maven的插件-->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>