Jrebel远程服务器配置错误:“IllegalStateException:无法确定文件中的代码源存档...”

问题描述 投票:0回答:1

当我添加“-Drebel.remoting_plugin = true”来运行我的Spring Boot jar文件时,我收到了这个错误:java.lang.IllegalStateException:java.lang.IllegalStateException:无法从file.enter image description here确定代码源存档

提示:Jrebel remote server configuration

java spring-boot intellij-idea jrebel
1个回答
1
投票

这是JRebel版本7.0.13-7.1.4中的一个错误,该错误导致ProtectionDomain CodeSource位置URL对于最初从JAR加载的可重新加载的类不正确。

这会影响spring-boot版本<= 1.3.8,因为引导类和应用程序类没有在fat jar中分离(1.4.0引入了BOOT-INF/classes),因此spring-boot内部类可以重新加载并收到错误的URL。

在7.1.5发布之前,您可以在这里下载每晚构建:https://zeroturnaround.com/software/jrebel/download/nightly-build/

© www.soinside.com 2019 - 2024. All rights reserved.