IDEA开启热部署
步骤1:在pom.xml中添加spring-boot-devtools热部署依赖。
步骤2:选择File -> Settings,打开Compiler设置页,勾选build project automatically。
步骤3:在IDEA中按“Ctrl+Shift+Alt+/”打开Maintenance选项框,选中并打开Registry页面,勾选compiler.automaker.allow.when.app.running指定在程序运行时自动编译。
步骤4:改动页面前端,查看是否自动更改。