IDEA热部署

IDEA debug启动后,一般修改文件后F5刷新也就可以更新,但有时不太好使,用下面方法配置一下不用F5刷新了,修改即生效。

《以下转自:https://www.cnblogs.com/b6952/p/10952079.html》


第一步:
设置IDEA开启项目自动编译,进入设置找到Build,Execut, Deployment -> Compiler 勾选中左侧的Build Project automatically

 


第二步:
IDEA开启项目运行时自动make, ctrl + shift + a(windows电脑),command+shift+alt+/(mac系统)搜索命令:registry -> 勾选compiler.automake.allow.when.app.running

 


点击Registry之后勾选compiler.automake.allow.when.app.running

 

如果是tomcat启动,则需要配置:

 

 

改为

 

posted on 2020-03-12 13:51  webjlwang  阅读(161)  评论(0编辑  收藏  举报

导航