本文idea工具为idea2023.1
1、引入插件
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
2、在File->Settings下勾选 如图所示的选项
3、ctrl+Shift+Alt+/ 快捷调出Maintance界面
搜索automake 选择第一项 勾选就可以了