【发布时间】: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