IDEA导入Spring源码缺失spring-cglib-repack-3.2.6.jar和spring-objenesis-repack-2.6.jar

用IDEA导入Spring源码后缺失spring-cglib-repack-3.2.6.jar和spring-objenesis-repack-2.6.jar这两个依赖,网上试了几种方法感觉太麻烦了,spring源码解析这本书给出的办法是在spring-core文件下找到spring-core.gradle的配置,添加complie fileTree(dir: ‘libs’ ,include : ‘*.jar’)
但是我试了这种方法以后报路径不一致这个错Warning:Kotlin: Classpath entry points to a non-existent location: D:\SpringFamily\spring-framework-5.0.x\spring-core\build\libs\spring-cglib-repack-3.2.6.jar
Warning:Kotlin: Classpath entry points to a non-existent location: D:\SpringFamily\spring-framework-5.0.x\spring-core\build\libs\spring-objenesis-repack-2.6.jar
IDEA导入Spring源码缺失spring-cglib-repack-3.2.6.jar和spring-objenesis-repack-2.6.jar_第1张图片正确的方法:
直接找到图片中gradle命令的位置
在这里插入图片描述分别Run这两个命令cglibRepackJar和objenesisRepackJar就可以了IDEA导入Spring源码缺失spring-cglib-repack-3.2.6.jar和spring-objenesis-repack-2.6.jar_第2张图片

你可能感兴趣的:(SpringFamily)