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


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

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

3、Setting--->Compiler--->勾选Build project automatically

4、pom.xml增加依赖(这种方式值适用于springboot项目)



    org.springframework.boot
   spring-boot-devtools true

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