IDEA配置
CTRL + SHIFT + A
查找 make project automatically 并选中
CTRL + SHIFT + A
查找 Registry
找到并勾选compiler.automake.allow.when.app.running
Maven配置
- 在pom.xml文件中添加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
- 开启热部署
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>//该配置必须
</configuration>
</plugin>
</plugins>
</build>
浏览器缓存配置
Google Chrome
FireFox
IE