在修改完代码,再次点击运行的时候会出现下面这种错误
Hot Swap failed. DpRunApplication: schema change not implemented DpRunApplication: Operation not supported by VM
修改IEDA设置
打开 Settings --> Build-Execution-Deployment --> Compiler,将 Build project automatically.勾上。
点击 Help --> Find Action…,或使用快捷键 Ctrl+Shift+A来打开 Registry…,将 其中的compiler.automake.allow.when.app.running勾上。
全部设置完毕,重启一下IDEA。