IDEA开启Springboot热部署

一、创建Springboot项目

二、导入POM依赖

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

三、设置IDEA自动编译项目

在这里插入图片描述

四、开启IDEA设置

1. Shift+Ctrl+Alt+/ 快捷键打开对话窗口

在这里插入图片描述

2. 开启项目运行时自动编译

在这里插入图片描述

五、重启IDEA,使配置生效

发布了24 篇原创文章 · 获赞 14 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/biubiu2it/article/details/102749779