背景:
JRebel版本:2020.2.5.1
SpringBoot版本:2.5.7
在启动的时候报错,信息如下:
Cause by: compile error: cannot find constructor org.zeroturnaround.javarebel.integration.spring.boot.ResourceReloadingProperties(java.util.List,org.springframework.boot.env.PropertiesPropertySourceLoader,org.zeroturnaround.javarebel.integration.spring.boot.Profile,org.springframework.core.io.Resource,Object)
原因是:SpringBoot版本和jrebe版本不兼容,需要降级SpringBoot版本或者升级JRebel版本。两种方式亲测可用:
方式一:SpringBoot版本降级为2.2.6
方式二:JRebel升级为2021.4.1(当前最新版)
升级过程
直接在idea中update,然后重启