The first step is to add DevTools dependency to your SpringBoot project
<!-- 热部署DevTools -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
The second step, open Settings , click Build, Execution, Compiler under Deployment settings
The third step, double-click the shift button (shift twice by default), a search box will come out, search for registry , and click the first action