这里写自定义目录标题
idea运行mybatis大量飘红警告
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/E:/aJava/IdeaProjects/MyBatis/D02_mybatis_crud/libs/mybatis-3.4.5.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版本和Jar包的版本相差较多
解决:
方法1、改变JDK或者jar包版本(不推荐)
方法2、在如图所示位置(JVM option
)将下面一行代码赋赋复制进去
--add-opens java.base/java.lang=ALL-UNNAMED