IDEA下SpringBoot实现热部署

版权声明:本文版权归Jitwxs所有,欢迎转载,但未经作者同意必须保留原文链接。 https://blog.csdn.net/yuanlaijike/article/details/81324225

Step1:

按照下图所示,勾选Build project automatically:

Step2:

快捷键ctrl + shift + A,搜索Registry,选择第一个,如下图所示:

勾选下图中compiler.automake.allow.when.app.running,然后点击关闭。

Step3:

重启IDEA

Step4:

在项目中引入spring-boot-devtools依赖,即可:

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

猜你喜欢

转载自blog.csdn.net/yuanlaijike/article/details/81324225