1,设置一

2,设置二

设置二(旧版本)
Ctrl+Shift+Alt+/ 点击弹出框中Registry...


引入(如果报错,换不同的版本)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>2.7.18</version>
</dependency>
Ctrl+Shift+Alt+/ 点击弹出框中Registry...
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>2.7.18</version>
</dependency>