热部署即修改了类等文件,无需重启及时生效。设置只需要2步
1、引入依赖
依赖文件
<!--热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
2、ide设置
使用快捷键“Ctrl+Shift+Alt+/”打开Maintenance选项框,选中并打开Registry页面。 目的:指定IDEA工具在程序运行过程中自动编译