zoukankan      html  css  js  c++  java
  • SprinfBoot报警告WARNING: An illegal reflective access operation has occurred

    警告如图所示,该警告是因为jdk版本太高(我用的是10.0,据说9.0的也会这样),具体的原理还没有研究,它不影响项目的正常运行,但是看着很糟心有木有~~~~

    解决方案是把项目jdk降低到1.8及以下,建议1.8。

    操作步骤:

    快捷键Ctrl+Alt+Shift+S 进入项目结构设置如图

    修改为1.8  然后确认即可。

    如果上述方法还没有解决,那请在上图中打开Modules,然后检查一下每一个模块的Dependencies

    保证每一个模块的版本都在1.8及以下。  然后确认!

    到现在,问题应该就解决了。

      如果问题解决,留个评论哟。谢谢  

    以下内容仅用于搜索引擎定位本文章,不用看

     WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/zhangxianwen/.m2/repository/org/springframework/spring-core/5.0.7.RELEASE/spring-core-5.0.7.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

  • 相关阅读:
    使用Jquery的Ajax调用后台方法
    FileUpload与UpdatePanel
    OnClick与OnClientClick的时序和条件
    LinQ使用积累
    If...Else转换为Action的写法
    淘宝对接(二)
    淘宝对接(一)
    dialog传值
    android sdk开发包国内下载地址合集
    admob android
  • 原文地址:https://www.cnblogs.com/exmyth/p/12489695.html
Copyright © 2011-2022 走看看