问题描述
pull了一个项目,环境是jdk11.0.6,而我之前使用的是1.8。当然这都是小问题,关键是配置好环境后,启动时会弹出这么一个警告。暂时不知道会有什么影响,不过还是找了一下解决方法。
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils (file:/D:/Java/solfware/Maven/maven_repository/org/springframework/spring-core/5.2.0.RELEASE/spring-core-5.2.0.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
解决办法
1.配置VM option
输入:–illegal-access=deny