主要看气质!!! 2022-01-15 12:01 采纳率: 0%
浏览 26

An illegal reflective access operation has occurred

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/F:/.m2/localrepository/maven_repository/org/springframework/spring-core/5.1.6.RELEASE/spring-core-5.1.6.RELEASE.jar) to method java.lang.ClassLoader.findLoadedClass(java.lang.String)
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

jdk版本为9,
spring-instrument版本如下:

org.springframework
spring-instrument
5.1.6.RELEASE

在学习spring的@EnableLoadTimeWeaving注解时,出现上述警告,并且方法得不到增强。
搜索结果为jdk版本过高,超过8之后的版本对反射也进行了约束。

请问只能通过降低jdk版本解决问题嘛?

  • 写回答

1条回答 默认 最新

  • 「已注销」 2022-01-15 14:41
    关注

    该警告是因为jdk版本太高

    评论

报告相同问题?

问题事件

  • 创建了问题 1月15日

悬赏问题

  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题