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

  • 相关阅读:
    Java 注解指导手册(下)
    CentOS安装Redis Sentinel HA集群
    EasyBCD安装CentOS双系统
    读《大型网站技术架构核心原理与案例分析》
    CentOS的Redis内存分配策略配置
    CentOS搭建VSFTP
    freemaker分页备忘
    jenkins持续集成配置备忘
    Redis常用命令
    stream转byte数组几种方式
  • 原文地址:https://www.cnblogs.com/exmyth/p/12489695.html
Copyright © 2011-2022 走看看