spring:发生了非法的反射访问操作(spring-core-5.3.3)

1qczuiv0  于 2021-07-24  发布在  Java
关注(0)|答案(0)|浏览(186)

当运行一个(spring-boot)微服务时,我们得到一个非法的反射访问操作错误。由于这个微服务实际上与我们设置中的其他微服务非常相似,这是非常令人惊讶的,我不知道是什么导致了它。以下是完整的错误文本:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/Users/xxx/.m2/repository/org/springframework/spring-core/5.3.3/spring-core-5.3.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
WARNING: Please consider reporting this to the maintainers of org.springframework.util.ReflectionUtils
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(-core)中的一个bug吗?或者我可以(需要)做些什么来修复或者解决这个问题?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题