- Go to Help->Find Action
- Type "Registry".
- Find and mark : “compiler.automake.allow.when.app.running”.
- Close the Dialog.
- Go to "Settings->Build, Execution, Deployment->Compiler".
- Mark "Build project automatically".
- Apply changes.
- Go to Spring Boot Configuration and if everything goes well it will display a warning about "background compilation", Run your Spring Boot Application and you should be able to see your statisc's files changes when refresh your browser.
上面是一劳永逸的方法
或者每次都ctrl+shift+f9