Now most technical teams are required to see the source code of the basic framework and understand the principles. Okay, I admit that I am a sucker. I tried to read it before, but I don’t know why I go crazy every time I read it and I am completely confused. There are many masters in the anonymous area, and many of them must have read the source code. Please give me some tips or learning experience from the senior masters.
1. When looking at the source code, you must first understand the common design patterns
2. Don’t grasp the details the first time you look at the source code
3. To find the right entry, such as Spring MVC, you have to look for DispatherServlet
4. Draw more pictures, summarize and take notes
Look at the simple source code. . . Upgrade step by step. . . Lay the foundation. . . Don't think about reaching heaven in this step. . .
A framework, before looking at the source code, first learn to use this framework, know the function of this framework, and how to use it, and then why it can be used in this way, why it has such an effect, go to the source code with questions, find the reason, it may be like this It will be better. Everyone’s learning method is different. The main thing is to find the one that suits you
The easiest way is to try to make a simple mvc small box by yourself. Then when you encounter problems and needs, you will continue to enrich them. If you don’t understand, ask more and read more. This will be the most solid. When you can write it yourself, it will be easy to learn. It will be as difficult as you are now. PS: The most important thing is to have a circumvention tool. Just forget about searching in China