idea里面改下配置也能自动重启吧
IDEA需要设置
1.setting->Build,Execut, Deployment -> Compiler 勾选Build Project automatically
2.ctrl + shift + a->搜索:registry -> 勾选compiler.automake.allow.when.app.running
引用不知道几楼的,侵删