Off Topic
For spring frames, they are usually donuts, and stay in the level of use. Have always wanted to study deeply, just recently saw "spring Source depth analysis", so want to study in depth with the book.
If you use Maven
If you are using MAVEN, and just debugging, and do not intend to modify it, you can download the source code directly using Eclipse!!
For example, I want to see the Attribute.java file under Spring-core.
Open directly, you will be prompted not to find the source file. You can then right-click in the Maven dependency package,
Compiling spring Source code
If you want to see and modify spring's source code, you should re-import the spring project and compile it!
If you download the spring source and import it into Eclipse, online search has a lot of results that are similar. I follow the above method to execute the root directory of the Import-into-eclipse.bat file, found the first step error:
for Object heaperror:could not create the Java Virtual machine.
Probably to set the parameters of the JVM, continue Baidu ...
Set default_jvm_opts=-xms512m-xmx512m-xx:maxpermsize=256m
or report the same mistake!
Finally, find a lot of information, and finally found a relatively different solution: http://blog.csdn.net/xiejx618/article/details/16930827 set the source file under the root directory Gradlew.bat
Set Java_home=d:\softs\jdkset Gradle_opts=-dgradle.user.home=d:\softs\gradle-2.2.1set DEFAULT_JVM_OPTS=
Then, the cmd switch to the source root directory, the execution of Import-into-eclipse.bat, found down executed .....
Placeholder
The problem is again, compile error, find a lot of dependent files and so on. See online said may be due to the network environment, more than several times can be executed. So, re-execute Import-into-eclipse.bat finally in the download ... However, the speed is not generally slow, slowly!!!
Eclipse View Spring Source