IDEA热部署不生效解决方案(亲测有效)

1.pom依赖


   
                      
    org.springframework.boot
    spring-boot-devtools   
    true        


如果是ecplise好像不用剩下的步骤了,没测过, 可以试一试

2.开启热部署


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

3.开启idea自动make功能

CTRL + SHIFT + A –> 查找make project automatically –> 选中

IDEA热部署不生效解决方案(亲测有效)_第1张图片

4.重启IDEA

总结:以上缺一步, IDEA都不好使的。实现热部署后,包括更新Xml, Java类中新增方法等, 都试了, 都不用重启了。

*原文:https://blog.csdn.net/qq_27416233/article/details/84784476

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

你可能感兴趣的:(开发工具)