(热部署)IDEA热部署,SpringBoot适用


1、ctrl+Shift+Alt+/,选择Registry

 2、勾选 compiler.automake.allow.when.app.running(可能不按首字母排序,可以多找找)

 3、Ctrl+Alt+s  ---  按如下图选中

 4、pom.xml增加依赖



org.springframework.boot
spring-boot-devtools
true

5、正常情况下热部署已经配置成功,但是有部分人还会有问题,可以试试如下方式(原理可以查看:Maven Plugin fork 在 pom.xml中的作用)


    
        
            org.springframework.boot
            spring-boot-maven-plugin
            
                true
            
        
    

小编不易,可否来个三连,赏个赞也是好的呀!!!

 博客参考:

IDEA 热启动,每次更改代码后不用重启服务:

springboot热部署(二)——springboot热部署与发布:

Maven Plugin fork 在 pom.xml中的作用:https://blog.csdn.net/jiangchao858/article/details/108880019