错误:发生了非法的反射访问操作 guice/java/spring-boot

当我突然收到此警告消息时,我去初始化一个 spring boot 应用程序:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineclass(java.lang.String,byte[],int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

我环顾四周,发现有关 4.2.3 版本中的错误的信息,但已在 5.0.1 中修复。

我的问题是:

如果最后一个版本在命令行中不可用,我可以在哪里以及如何手动安装 guice 依赖项?

最新版本是 5.0.1,我没有通过 apt-update 获得这个版本。

在我的一次搜索中,我听说必须将其安装在 google 目录中...

我不确定这一点,我认为我不太了解。

我的 SO 是 Ubuntu Pop-OS 20.04、amd64x,我使用 Maven 来管理 Spring Boot 项目。

maria0830 回答:错误:发生了非法的反射访问操作 guice/java/spring-boot

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/776094.html

大家都在问