An illegal reflective access operation has occurred

启动Spring Boot 项目突然看到下面的警告内容

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils (file:/D:/maven_res/org/springframework/spring-core/5.2.8.RELEASE/spring-core-5.2.8.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils
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

错误信息
我还以为怎么了,原因是idea默认使用了jdk 11,项目使用的是jdk1.8.将11调整为1.8即可
调整为8

调整后
调整完成

原创文章,作者:745907710,如若转载,请注明出处:https://blog.ytso.com/243861.html

(0)
上一篇 2022年4月11日
下一篇 2022年4月11日

相关推荐

发表回复

登录后才能评论