Spring Boot热部署

在SpringBoot中启用热部署非常简单,因为SpringBoot提供了一个非常方便的工具spring-boot-devtools,只需把这个工具引入到项目里即可。

1、在pom.xml里添加依赖

Spring Boot热部署

2、在Intellij里启动自动构建项目

Spring Boot热部署

3、Ctrl+Shift+A,搜索Registry,找到compiler.automake.allow.when.app.running勾选。

Spring Boot热部署

4、实现页面热部署
Spring Boot热部署

相关文章: