热部署
- 引入热部署插件
在builg.gradle的依赖中添加:
compile("org.springframework.boot:spring-boot-devtools")
热更新
- Windows系统Idea快捷键 Crtl+Shift+Alt+/
- 勾选 compiler.automake.allow.when.app.running
- Idea File->settings->Compile,勾选 Build project automaticlly
参考:
【1】:https://www.jianshu.com/p/ad049e0afd97