一、开启idea自动build功能
1、File -> Settings -> Build,Execution,Deployment -> Compiler -> Build project automatically -> 选中

IntelliJ IDEA热部署设置方法
备注:网上好多说是Make project automatically,而我的是Build project automatically,可能是旧版本,我的是2017.3版本。

2、Ctrl+Shift+A -> 输入Registry(然后在下拉板双击Registry,不是Registry...哦!)

IntelliJ IDEA热部署设置方法

3、找到compiler.automake.allow.when.app.running,选中

IntelliJ IDEA热部署设置方法

二、Chrome禁用缓存  
F12(或Ctrl+Shift+J或Ctrl+Shift+I)--> NetWork --> Disable Cache(while DevTools is open) 

IntelliJ IDEA热部署设置方法

相关文章: