警告如圖所示,該警告是因為jdk版本太高(我用的是10.0,據說9.0的也會這樣),具體的原理還沒有研究,它不影響項目的正常運行,但是看着很糟心有木有~~~~
解決方案是把項目jdk降低到1.8及以下,建議1.8。
操作步驟:
快捷鍵Ctrl+Alt+Shift+S 進入項目結構設置如圖
修改為1.8 然后確認即可。
如果上述方法還沒有解決,那請在上圖中打開Modules,然后檢查一下每一個模塊的Dependencies
保證每一個模塊的版本都在1.8及以下。 然后確認!
到現在,問題應該就解決了。
如果問題解決,留個評論喲。謝謝
以下內容僅用於搜索引擎定位本文章,不用看
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/zhangxianwen/.m2/repository/org/springframework/spring-core/5.0.7.RELEASE/spring-core-5.0.7.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