【问题标题】:I am getting error warning while running first time spring boot application in eclipse. I am using JDK 14在 Eclipse 中运行第一次 Spring Boot 应用程序时出现错误警告。我正在使用 JDK 14
【发布时间】:2020-07-19 06:23:54
【问题描述】:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/Sandeep%20Rawat/.m2/repository/org/springframework/spring-core/4.3.2.RELEASE/spring-core-4.3.2.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.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

【问题讨论】:

  • 你用的是什么版本的 Spring?
  • Spring 版本是 1.4.0.RELEASE
  • 根据spring.io/blog/2020/03/11/…:“[...] 使用 Spring Boot 2.3 或更高版本。[...] 旧版本的 Spring Boot 尚不支持 Java 14 运行时。 " 你应该使用 Spring Boot 2.3。 Spring Boot 1.4 不支持 JDK 14。
  • 是的,现在工作正常。谢谢@Thomas Klager

标签: java spring maven


【解决方案1】:

这可能是您的 Java 环境/版本的问题。尝试卸载 JDK 并安装最新版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-04-18
    • 1970-01-01
    • 2023-02-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-04
    • 1970-01-01
    相关资源
    最近更新 更多