脚本宝典收集整理的这篇文章主要介绍了解决mybatis输出警告:Illegal reflective access by org.apache.ibatis.reflection.Reflector xxx to method java.lang.Integer.getChars(int,int,byte[]),脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
项目中引用了mybatis,在查询SQL时,mybatis输出警告如下:
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.Integer.getchars(int,int,byte[]) 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
当前使用的mybatis sPRingboot starter版本为:1.3.2
<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.3.2</version> </dependency>
版本较老,升级为新的版本 2.1.3,不再报警告。
以上是脚本宝典为你收集整理的解决mybatis输出警告:Illegal reflective access by org.apache.ibatis.reflection.Reflector xxx to method java.lang.Integer.getChars(int,int,byte[])全部内容,希望文章能够帮你解决解决mybatis输出警告:Illegal reflective access by org.apache.ibatis.reflection.Reflector xxx to method java.lang.Integer.getChars(int,int,byte[])所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。