SpringBoot热部署

102 阅读1分钟

SpringBoot热部署就是自动更新代码,不需要重新启动

1.添加dev-tool框架
<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
			<scope>runtime</scope>
			<optional>true</optional>
</dependency>
2.所有项目开启自动编译

在这里插入图片描述 在这里插入图片描述

3.开启运行时的热部署

在这里插入图片描述

4.使用debug启动项目

在这里插入图片描述