步骤1:在pom.xml中添加spring-boot-devtools热部署依赖。
IDEA开启热部署

步骤2:选择File -> Settings,打开Compiler设置页,勾选build project automatically。
IDEA开启热部署

步骤3:在IDEA中按“Ctrl+Shift+Alt+/”打开Maintenance选项框,选中并打开Registry页面,勾选compiler.automaker.allow.when.app.running指定在程序运行时自动编译。
IDEA开启热部署

IDEA开启热部署
步骤4:改动页面前端,查看是否自动更改。

相关文章:

  • 2021-08-20
  • 2021-08-15
  • 2021-10-11
  • 2021-12-31
  • 2021-11-30
  • 2022-01-12
  • 2021-08-15
  • 2021-04-01
猜你喜欢
  • 2021-12-05
  • 2021-11-11
  • 2022-01-05
  • 2021-05-15
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案