解决办法1:
开发环境用如下配置即可
1 | # Templates reloading during development |
application.properties中增加如上配置,运行项目即可
解决办法2:
1、File->Settings->Build, Execution, Deployment->Compiler,勾选Build project automatically
2、Help->Find Action,搜索Registry,勾选compiler.automake.allow.when.app.running
如上设置IDEA,运行项目即可