IDEA配置热部署
•
Jave
1、IDEA2021版本进入Settings -> Build,Execution,Deployment -> Compiler,勾选Build project automatically

2、在工作区按 Ctrl + Shift + Alt + /,选择Registry
Mac连续按两次shift键,打开选择框,输入reg,选择“Registry……”


compile.document.save.trigger.delay 它主要是针对静态文件如JS CSS的更新,将延迟时间减少后,直接按F5刷新页面就能看到效果!
3、开启热部署
- 2019版本中, Ctrl + Shift + Alt + /,选择Registry
勾选 compiler.automake.allow.when.app.running —> 自动编译 即可
- 2021版本中,需要在Setting的 Advanced Settings 中勾选(Ctrl + Alt + S 快速唤出 Settings)

4、启动配置中设置更新

5、添加依赖
org.springframework.boot
spring-boot-devtools
true
true
org.springframework.boot
spring-boot-maven-plugin
true
本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/e94393abb0.html
