springboot热部署


6.2.1什么是热部署

修改java类或页面或者静态文件,不需要手动重启

原理:类加载器

适合于本地开发环境

6.2.1 Maven依赖



    org.springframework.boot
    spring-boot-devtools
    runtime
    true

6.3.3 Idea工具设置

1) “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “Build project automatically” 。

2) 组合键:“Shift+Ctrl+Alt+/” ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running”