[Fertilizer] towards the issues discussed from time to talk to my thinking on reading source

Such as this, there is no deep thinking of the students, it is easy to be misled by outward appearances, thought that the problem will be solved, immediately turn off the post. But the depth of thinking students will choose public attention towards fat number, then top star, and think, why fat can be found towards the key classes quickly it? This is the core of the problem! Be sure to understand what "solve a problem" and "solve a class of problems"! If you do not master the methods and techniques to analyze problems, the next encounter other annotations, you still can not solve, what is the point?

analyse problem

Due to Dubbo series written source code parsing before the fat towards the public numbers are mostly old fans, then I will take Dubbo, for example, said that the idea of ​​the problem under analysis. Of course, this time bickering like the students may have to refute, this problem is not Springboot do, and Dubbo have anything to do? I can only say good code, routine ideas are basically the same, pit father of the code, but have a variety of different pit method. Take Dubbo to analyze, it does not affect the essence of your problems found!

For example, Dubbo often emphasized is the "micro-kernel", "plug-in." Liang Fei have mentioned

Now that you want to expand, the expansion point of loading, the first to unify, micro core + plug-in, is more able to reach the idea of ​​OCP principles, consists of a plug-in life cycle management of the container to form a micro core, the core does not include any function, so you can Make sure that all functions can be replaced, and the author can do frame function, extenders also must be able to do, in order to ensure equal treatment of third parties, so that the framework itself also functions implemented as plug-in, can not have any hard-coded.

Many students look ignorant after reading this force. In fact, the latter part of this passage is the key

Framework of the functions can be done, extenders also must be able to do, in order to ensure equal treatment of third parties, so that the function of the frame itself but also with the way plug-in implementation, there can be no hard-coded.

So we can conclude from this passage toward the fat, actuatorif you use the timer function, he must stand and the general public user is a fan of numbers using the angle timer function to start the timer.

In other words, spring-boot-starter-actuatorin class it is definitely a marked @EnableSchedulingnotes, instead of calling something annotations bottom packages scattered. This is the theoretical basis. The theoretical basis, you can decide the next step of thinking and action.

With the theoretical basis, so the key is, in the end what class branded ah! This time, we can use the idea of ​​search techniques to

This idea is very easy to use search function, the search scope can set various ranges, see the source code necessary skills!

Taking into account each person's shortcut keys, and therefore see the figure

Knock on the blackboard draw focus

See here, a lot of people it is easy to understand herein, this technique is introduced idea of the article. Again, be sure to look at the issue depth thinking. Source is endless, but the problem-solving tools and ** 套路**, but it is limited. Many students see the source code, just look at a process, I feel like watching movies, and there is no independent thinking individual, conversion rates, such knowledge is too low. For example, you look at my analysis of this article 理论基础to 实践these experiences, all you need from a lot of reading the source code to continue summarized.

So please do not ask towards fat, "Look at the source code, is there no use", "to see how the source code," and so on, because I parse every one source, the actual source code, in answer to these two questions, if you ask this problem, you simply do not visible fat towards attention, or no attention to the star top!

In addition, a variety of source analytic series (note fertilizer towards the wording, I'm talking about the series) is constantly hot even more welcomed continuing concern, with "chase drama"!

Written in the last

Guess you like

Origin juejin.im/post/5d00df7ef265da1bb31c3186