IDEA编译spring源码遇到的问题

1、在使用spring5.2.3之前的版本编译的时候都遇到过这个问题
单独编译spring-oxm模块的时候
IDEA编译spring源码遇到的问题_第1张图片

D:\workspace_new\spring-framework-5.2.0.RELEASE\spring-framework-5.2.0.RELEASE\spring-beans\src\main\java\org\springframework\beans\support\PropertyComparator.java:138: 错误: 不兼容的类型: PropertyComparator<CAP#1>无法转换为Comparator<? super CAP#1>
			source.sort(new PropertyComparator<>(sortDefinition));
			            ^
  其中, CAP#1是新类型变量:
    CAP#1?的捕获扩展Object

当时使用的是jdk11,tomcat8,不清楚是不是兼容性的问题,后来搞了好久没有找到解决的方法,直接下载了spring最新的版本spring5.2.5, 但是又遇到了新的问题如下

2、报错fatal: not a git repository (or any of the parent directories): .git
解决的方案连接如下
https://stackoverflow.com/questions/53100108/process-command-git-finished-with-non-zero-exit-value-128
大概就是需要配置下git,并且将项目commit下(注意在项目目录git init下)

其实spring编译源码主要还是遇到的第一个问题让我有点头疼,不知道咋回事,现在也是,希望看到的朋友如果有遇到过相同的问题并且解决了的话,麻烦留下你的解决方案,哈哈哈

你可能感兴趣的:(spring)