Springboot 热部署实现项目不重启调试

岁酱吖の 提交于 2020-08-12 08:02:22

1、导入相关jar包

<!--热部署-自动编译要勾选上-->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>
<!--热部署-->

2、修改启动插件的fork 属性

3、修改idea,启动自动编译

    (1)File-Settings-Compiler-Build Project automatically

    (2)ctrl + shift + alt + / ,选择Registry,勾上 Compiler autoMake allow when app running

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!