sqringboot热部署添加依赖即可
<!-- spring boot devtools 依赖包. -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
idea需要配置自动编译
- File->setting->搜索compiler->将Build project automatically打勾
- CTRL+ALT+SHIFT+/组合键打开 Maintenance窗口选择Registry…,找到compiler.automake.allow.when.app.running选项, 打勾开启运行时编译功能