springboot idea 热部署

1.springboot项目添加依赖

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

2.设置idea

springboot idea 热部署

3.设置idea

springboot idea 热部署
勾选:compiler.automake.allow.when.app.running
springboot idea 热部署

4.设置浏览器不缓存 js

F12,打开控制台,然后,F1 ,打开控制台 设置。找到 Network
springboot idea 热部署