什么是热部署
修改java类或页面或者静态文件,不需要手动重启 原理:类加载器 适合于本地开发环境
配置
引入依赖
<!--SpringBoot热部署配置 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>