Recently read the spring source, and then prepare to do a lot of work, first of all, say a tutorial online it;
http://blog.csdn.net/zeuskingzb/article/details/41425421 this is used in Git plus gradle plus JDK8 plus groovy,spring source in-depth analysis of the book also mentioned. Then after downloading a variety of environmental problems, in addition Gradle sincerely will not use, engaged for a few days, helpless, intends to change a way of thinking; I am not here to evade the problem, but to bypass the problem, the cowardly person will evade the problem, the diligent person will solve the problem, and the wise man will bypass the problem. I just want to read the spring source, there's no need to learn groovy and gradle. Well, here is a very primitive way to read the source code, of course, is the simplest.
First we use git to download the spring source on the official website. After downloading, the resolution is saved to the local directory;
It's supposed to be the same structure.
Here I have a project called
A lot of spring racks were introduced into the project.
Here I want to see the context of the source of what to do, open the context directory, casually open a will see
This question, I have been engaged for a long while, finally found actually very simple.
First, right buld path to this rack.
Then the mouse points to source attachment, click Edit
Location path Select the rack package you want to read
External file also select the rack package that you want to read
Finally click External folder
Find the location of the source code you downloaded
Click OK, then OK, then open the class file and it becomes
OK, so we can debug while reading the source code, although it is a stupid method, but really very simple. It's not as complicated as it says online.
How eclipse reads Spring source