一、总共需要3步
-
1.1 在 setting 中设置
![](https://i-blog.csdnimg.cn/blog_migrate/a6d47022a50ce835432ed35155cd46e6.png)
![](https://i-blog.csdnimg.cn/blog_migrate/fc53e122236188422cf8080e7eb63b65.png)
1.2 使用ctrl +shift+alt +’/’ 弹出的选项框 勾选Registry
勾选之后 点 close
1.3 导入 依赖
<!-- https://mvnrepository.com/artifact/binaryage/devtools -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
依赖官网地址( https://mvnrepository.com/)maven 仓库地址
搜索 devtools
仅此奉上👍