我在使用 Spring Boot 时遇到 Spring 应用程序问题。
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/User/.m2/repository/org/springframework/spring-core/5.0.5.RELEASE/spring-core-5.0.5.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
我有 JDK 9.0,Spring Boot 2.0.4.RELEASE(现在我将依赖项更改为 2.0.5.RELEASE,但 Spring Core 未实现。我看到 Spring Core 是 5.0.9。
有什么问题吗?
最佳答案
我在 Spring Boot 2.1.12 中遇到了同样的问题。删除 org.springframework.boot:spring-boot-devtools 依赖项解决了我的问题。这似乎是一个已知问题(根据我发现的几个 GitHub 问题。
关于spring-boot - Spring Boot - org.springframework.cglib.core.ReflectUtils$1 进行非法反射访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52512580/