WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils1(file:/D:/Code/maven/repertory/org/springframework/spring−core/5.0.6.RELEASE/spring−core−5.0.6.RELEASE.jar)tomethodjava.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)WARNING:Pleaseconsiderreportingthistothemaintainersoforg.springframework.cglib.core.ReflectUtils1(file:/D:/Code/maven/repertory/org/springframework/spring−core/5.0.6.RELEASE/spring−core−5.0.6.RELEASE.jar)tomethodjava.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)WARNING:Pleaseconsiderreportingthistothemaintainersoforg.springframework.cglib.core.ReflectUtils1
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
据说是因为版本的问题然后有问题?
我是用的jdk10,用回之前的版本好像就可以了,但是这个错好像不影响运行?
在使用Spring框架时遇到了一个非法反射警告,警告指出由org.springframework.cglib.core包中的ReflectUtils1类尝试访问了ClassLoader的defineClass方法。尽管警告提示考虑报告给维护者,并且使用-jdk参数-illegal-access=warn可以启用更多警告,但似乎不影响程序的运行。问题可能与使用的JDK版本10有关,降级到更低版本可以解决此问题。
4349





