Spring Boot - org.springframework.cglib.core.ReflectUtils$1 进行非法反射访问

2024-02-08

我在使用 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 问题。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Spring Boot - org.springframework.cglib.core.ReflectUtils$1 进行非法反射访问 的相关文章

随机推荐