SpringBoot在IDE中热部署

1.首先设置IDE

在Settings中勾选支持热部署在这里插入图片描述

2.在maven中添加SpringBoot工具

  <!--热部署配置
        **IDE在设置的Build下的Compile勾选Build project automatically,
                    “Ctrl+shift+alt+/ 选Registry 再选compiler.automake.allow.when.app.running” ** -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
        </dependency>

3.修改配置,让工具生效

Ctrl+shift+alt+/ 选Registry

在这里插入图片描述

最后勾选automake
在这里插入图片描述

3.重启项目即可生效

发布了25 篇原创文章 · 获赞 25 · 访问量 1036

猜你喜欢

转载自blog.csdn.net/Android_Cob/article/details/105576786