idea热部署:修改代码后不用重新启动项目即可自动更新
步骤:
- 在pom.xml中加入依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
- setting->compiler-> build project automatically 勾选
- 在pom依赖处 shift+ctrl+alt+/ 选择Registy 勾选下面项(第一项 因为我勾选过 所以在前面 第一次应该在下面 需要自己往下翻)