Discuss / Java / IDEA添加依赖后热重启不生效

IDEA添加依赖后热重启不生效

Topic source

Loading...

#1 Created at ... [Delete] [Delete and Lock User]

老版本idea:

当我们修改了类文件后,idea不会自动编译,得修改idea设置。

(1)File-Settings-Compiler-Build Project automatically

(2)ctrl + shift + alt + / ,选择Registry,勾上 Compiler autoMake allow when app running

新版本idea:

(1)File-Settings-Compiler-Build Project automatically

(1)File-Settings-Advanced Settings-Allow auto-make to start even if ....

  • 修改类–>保存:应用会重启
  • 修改配置文件–>保存:应用会重启
  • 修改页面–>保存:应用不会重启,但会重新加载,页面会刷新

您这个方法可行,我的已经好了。


  • 1

Reply