mac-IDEA-SPringBoot(2)-工程热部署

工程热部署:原来:修改源码->启动生效
                     现在: 修改源码->自动更新加载
方法:
1.添加功能坐标
2.IDEA设置

 


1.添加功能坐标

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


2.IDEA设置
 2.1版本不同,设置的方式不同。
 如果是2020的版本,preference->compiler->"build project automatically"
 以前的版本可以在 file->settings->compiler->"build project automatically"

2.2设置regitry
    快捷键:command+option+shift+/

2.3注意:热部署是在debug下进行。

posted @ 2020-06-10 19:37  jasmineTang  阅读(129)  评论(0)    收藏  举报