Introduce dependencies directly in pom
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
Set the following two items (if the first item has been set, directly set the second item)
1) “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “Build project automatically” 。
2) Combination key: "Shift+Ctrl+Alt+/", select "Registry", select and tick "compiler.automake.allow.when.app.running"