一 设置Intellij IDEA(Windows系统)
1 File -> Settings... -> Build,Execution,Deployment -> Compiler,勾选Build project automatically。
2 Ctrl+Shift+Alt+/ 组合键打开Maintenance窗口,选择1. Registry...,勾选compiler.automake.allow.when.app.running选项。
二 添加依赖
在pom.xml中添加开发工具(spring-boot-devtools&