错误一:
1Error:Kotlin: warnings found and -Werror specified
2
3Warning:Kotlin: Classpath entry points to a non-existent location: E:\spring-framework\spring-core\build\libs\spring-cglib-repack-3.3.0.jar
4
5Warning:Kotlin: Classpath entry points to a non-existent location: E:\spring-framework\spring-core\build\libs\spring-objenesis-repack-3.1.jar
如图:

解决方法:
IDEA右侧Gradle--->spring-core--->Tasks--->others--->cglibRepackjar双击执行打包

IDEA右侧Gradle--->spring-core--->Tasks--->others--->objenesisRepackjar双击执行打包

重新编译,错误一问题解决,报错误二
错误二
1//错误二
2Error:(350, 51) java: 找不到符号
3 符号: 变量 CoroutinesUtils
4 位置: 类 org.springframework.core.ReactiveAdapterRegistry.CoroutinesRegistrar
5
6Error:(351, 51) java: 找不到符号
7 符号: 变量 CoroutinesUtils
8 位置: 类 org.springframework.core.ReactiveAdapterRegistry.CoroutinesRegistrar
如图:

解决方法:
IDEA右侧Gradle--->kotlin-coroutines--->Tasks--->build--->jar双击执行打包

到项目中spring-core 模块下查看已经打好的jar包

将打好的jar包添加到spring-core模块的main路径下

重新编译,成功!
尝试执行 XmlBeanDefinitionReaderTests类中的方法,执行成功,问题解决!

本来没打算写这篇文章,奈何本人遇到问题时在网上找了好久,各种博客看了十几篇,花了不少时间才最终试出了正确解决问题的方法,记录下来希望后来遇到的同学能节省点时间多看源码。
文章转载自听我来BB,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




