Affects: \
I reference import-into-idea.md ,but it is fail. It took me a lot of time!
environment:
- idea201902
- gradle 4.8 | gradle 5.6
- jdk 1.8
- aspects 1.9
Various problems
` Error:(26, 34) java: 程序包org.apache.commons.logging不存在
Error:(350, 51) java: 找不到符号 符号: 变量 CoroutinesUtils 位置: 类 org.springframework.core.ReactiveAdapterRegistry.CoroutinesRegistrar
Error:(26, 38) java: 找不到符号 符号: 类 InstrumentationSavingAgent 位置: 程序包 org.springframework.instrument `
My steps
- down spring-framework branch of master
- gradlew.bat :spring-oxm:compileTestJava
- Import into IntelliJ (File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle)
- gradle spring-core:compileTestJava
- gradle spring-beans:compileTestJava
- gradle spring-context:compileTestJava
- Configuring the aspects compiler for spring-aop
- gradle spring-aspects :compileTestJava
- new mytest Module
dependencies {
compile(project(":spring-context"))
compile(project(":spring-beans"))
compile(project(":spring-core"))
}
- my test code ,
public static void main(String[] args) {
BeanFactory xmlBf = new XmlBeanFactory(new ClassPathResource("beanFactoryTest.xml"));
MyTestBean myTestBean = (MyTestBean) xmlBf.getBean("myTestBean");
System.out.println("myTestBean.Name = " + myTestBean.getName());
}
Comment From: youngfuture
It is my first time import spring-framwork source code.I tried it many times in a few days. It is still failed! I'm going crazy.Who can give me some suessgestions! thank you very much!!!
Comment From: youngfuture
I found the problem last night. My JDK is not pure,I changed a new one.It works! Reference link
Comment From: poo0054
Hi, how did you solve it