1挖息、引入jar 包
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
2、引入插件
’<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
? ? </configuration>
</plugin>
3棘街、
4、組合鍵:“Shift+Ctrl+Alt+/” 段审,選擇 “Registry” 躁愿,選中打勾 “compiler.automake.allow.when.app.running” 。