SpringBoot和thymeleaf在IntelliJ IDEA中实现热部署

1、File–Settings–Compiler-- --> 勾选 build project automatically–ok
SpringBoot和thymeleaf在IntelliJ IDEA中实现热部署
2、CTRL + SHIFT + A --> 查找Registry --> 找到并勾选compiler.automake.allow.when.app.running
SpringBoot和thymeleaf在IntelliJ IDEA中实现热部署
3、加maven依赖

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>

经过上面三步,修改前端的静态文件不需重启重启项目就生效。本人测试有效。