idea社区版springboot热部署

返回
Author Avatar
钢翼
2021-03-16
编程
107

https://www.cnblogs.com/sprinkle/p/7058630.html
上面的方法用的是mvn插件的方式,实际上是重启应用,不能算是热部署。

1.安装插件

Settings->Plugins 搜索并安装以下插件

JRebel and XRebel for IntelliJ

2.启动自动编译

Settings->Build,Execution,Deployment
勾选 Build project automatically

3.启动运行时编译

Ctrl+Alt+Shift+/ -> registry...
勾选 compiler.automake.allow.when.app.running

4.使用JRebel启动或调试