本地热部署是能够在项目运行中感知到特定文件代码的修改而使项目不重新启动就能生效。
使用热部署后:
run 模式运行:当修改 jsp 文件时不需要重启 tomcat
debug 模式运行:修改类不需要重启服务器,重新编译之后直接刷新页面就会更新
1、SSM热部署,修改 Tomcat 配置
设置File -> Settings -> Build,Execution,Deployment -> Compiler -> Build project automatically

2.Springboot热部署
pom.xml引入依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
然后按crtl+F9
热部署Crtl+F9重新编译(页面修改及后台代码修改都可以)