Sprint Boot出现警告

问题


WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/C:/Users/Administrator/.m2/repository/org/mybatis/mybatis/3.4.0/mybatis-3.4.0.jar)to method java.lang.Object.finalize()
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

解决办法

找到编辑配置


添加虚拟机选项添加 --add-opens java.base/java.lang=ALL-UNNAMED 配置

作者:503611908
来源:https://www.eutaboo.com/index.php/2021/04/28/sprint-boot%e5%87%ba%e7%8e%b0%e8%ad%a6%e5%91%8a/
文章版权归作者所有,未经允许请勿转载。
THE END
分享
二维码
打赏
海报
Sprint Boot出现警告
问题 WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (fil……
< <上一篇
下一篇>>
文章目录
关闭
目 录