本教程仅做个人工作笔记,可能不适用于他人的工作/学习
目的:开发时代码的调试改动不用重启项目,浪费时间
关键词:devtools、springboot热部署、IDEA
实现:
1、添加maven依赖,以下依赖不会被打包
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
2、IDEA修改配置
2.1、点击下拉,点击Edit Configurations
2.1、将On 'Update' action
与On frame deactivation
都设置位Update classes and resources
然后Debbuger启动项目,Nice finish