SpringBoot2.x 热部署 DevTools

【pom】

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

【idea 配置】

1、setting->Build,Execution,Deployment->Compiler找到 Build Project Automatically
在这里插入图片描述

2、ctrl+shift+alt+/ 调出Maintenance(维护)控制台,选择Registry(登记)
在这里插入图片描述
3、勾选运行时自动编译(auto-making when app running)
在这里插入图片描述

发布了138 篇原创文章 · 获赞 69 · 访问量 13万+

猜你喜欢

转载自blog.csdn.net/qidasheng2012/article/details/103926984