WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/COCO/.m2/repository/org/springframework/spring-core/5.0.4.RELEASE/spring-core-5.0.4.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$1
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版本太高,具体的原理还没有研究,它不影响项目的正常运行,但是看着很糟心有木有~~~~

解决方案是把项目jdk降低到1.8及以下,建议1.8。

操作步骤:

快捷键Ctrl+Alt+Shift+S 进入项目结构设置如图

修改JDK版本就好了

WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/_第1张图片

你可能感兴趣的:(java)