springboot项目warningWARNING: An illegal reflective access operation has occurred WARNING: Illegal ref

springboot项目在启动过程中警告如下

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/D:/Tool/maven/repository/org/mybatis/mybatis/3.4.6/mybatis-3.4.6.jar) to method java.lang.Class.checkPackageAccess(java.lang.SecurityManager,java.lang.ClassLoader,boolean)
WARNING: Please consider reporting this to the maintainers of org.apache.ibatis.reflection.Reflector
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版本太高

解决方案

修改jdk版本

idea如何修改jdk版本

请看我的原创文章

你可能感兴趣的:(springboot项目warningWARNING: An illegal reflective access operation has occurred WARNING: Illegal ref)