菜单Run -> EditConfiguration , 指定服务器server标签下on frame deactivation = Update classes and resource。
IDEA开启项目自动编译,进入设置,Build,Execut, Deployment -> Compiler 勾选中左侧的Build Project automatically
IDEA开启项目运行时自动make, ctrl+shift+alt+/搜索命令:registry -> 勾选compiler.automake.allow.when.app.running