新人学习过程中踩坑系列之---IntelliJ IDEA热部署
- 引入maven依赖(用快速构建springboot项目的方式勾选spring-boot-devtools这些都会有)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
- 插件引入(用快速构建springboot项目的方式,configuration标签下会没有需要自己加)
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork> <!-- 明确表示编译版本配置的可用 -->
</configuration>
</plugin>
-
设置自动编译
File->Settings->Compiler->Build Project au