这篇博客探讨了在使用MyBatis时遇到的'WARNING: An illegal reflective access operation has occurred'警告问题。作者详细介绍了警告的描述,分析了产生此警告的原因,并提出了两种解决方案:一是将MyBatis版本更新为3.5.2,二是将JDK版本降低到1.8或以下。通过这些方法,可以帮助开发者解决这个常见的MyBatis运行时警告。
摘要由CSDN通过智能技术生成
MyBatis警告: WARNING: An illegal reflective access operation has occurred
警告描述
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/C:/Users/XXX/.m2/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