idea导入spring源码

1、下载安装gradle,并配置环境变量

2、下载AspectJ并配置环境,

3、github下载spring

4、导入idea

5、配置idea中gradle

6、如果报错:exception during working with external system: java.lang.AssertionError,则修改gradle-wrapper.properties的distributionUrl=https://services.gradle.org/distributions/gradle-4.10.3-bin.zipdistributionUrl=https://services.gradle.org/distributions/gradle-5.5.1-all.zip

7、如果core模块报错则,

 然后重新编译。

8、如果报错找不到AnnotationBeanConfigurerAspect 这种类的话,那么

 选中aop模块,添加AspectJ,然后

,然后给aspectJ这个模块重复此操作。然后

 9、如果oxm提示jaxb不存在,那么在gradle窗口,选中jaxb,然后Tasks-other-点击genCastor和genJaxb,然后重新编译

10、如果:

 ,那么安装一个插件,

11、如果任何模块的test报错,直接删了。

12、切记合理上网

原文地址:https://www.cnblogs.com/daihang2366/p/13043467.html