Author: Brother Xiaofu
Blog: https://bugstack.cn
Precipitate, share, grow, and let yourself and others gain something! 😄
1. Why? Mybatis
I know, you can't help but start with it! 🤨
In 2021, I took my fans and partners to read the Spring source code. By extracting the core logic of the entire framework, the code implementation process was simplified, and the core functions in IOC and AOP were gradually realized through progressive development. Let readers learn Spring's design ideas and landing codes from simple to deep, and also allow more readers to understand Spring source code. Of course, this also includes letting some readers who follow hands-on practice stand out in interviews!
Readers who have eaten Xiao Fu code know that TMD is really fragrant , and the learning videos of 1 T of the network disk have been deleted to store Xiao Fu's technical information. So Brother Fu is also urged by readers every day,
Brother Fu write Mybatis,
Brother Fu write Mybatis,
Fu write Mybatis, since you have been shouting for so long, I should do it too.
2. Curiosity drives learning
Brother Fu has been interested in Mybatis since the beginning, mainly because of curiosity: "Why when using Mybatis, you only need to define an interface, and you can use the SQL statements configured in XML or annotations without writing an implementation class. How about completing the database CRUD operation?" The core of this is the use of the interface proxy class, the DAO interface of each database operation is implemented by the proxy class that operates the database, and registered in the Spring container for users to use.
In fact, many times the deep learning of technology comes from such a little curiosity and a night of
tossing, although
will encounter many stumbling bugs, but after your own thinking, sorting, verification, and summarization, you will eventually Extract the core process and contextual information with the most technical value, just like the picture above, although it is not the whole but it is the most important part.
3. Goal, what does the liver look like
Like we completed handwritten Spring before, dismantling the function, simplifying the process, and implementing it gradually makes it easier for readers to learn the most valuable knowledge.
In the process of handwriting, learn Mybatis from parsing, binding, reflection, caching, to session and transaction operations, and how to associate with Spring to register Bean objects to complete the integration of some functional logic. Through the dismantling and realization of these contents, readers and partners can know very clearly how these core functions are realized. After reading the Mybatis source code, they will know where to start and where to end.
4. Plan and execute
- Brother Xiao Fu also wrote a short version of Mybatis and Mybatis-Spring before, but at that time, he mainly focused on the combination with Spring, and the framework implementation part of ORM was only a very basic implementation.
- Therefore, it is planned to focus on the realization of ORM functions according to the framework structure of Mybatis this time, and complete the development of this framework function through source code analysis and function realization. Every time a function is developed, the content is iterated based on the last chapter, and these function classes are gradually accumulated. This way will also better allow readers to understand how each function is designed and developed.
5. Get in the car, let's go
The car is coming, the car is coming🚌 In view of the past sharing and learning methods, such as hand-picking Spring, after the final course is written, make a PDF to earn a little hard money, but the effect is a bit poor and it is easy to be prostituted PDF 😂 ( really I hope to continue on the road of technology sharing).
In fact, if a Spring study booklet like Xiao Fu is put on some platforms, the final income will be much higher than it is now, but I feel that this method will limit my operation, and I don't want to be too much publicized. Can do a P7! So if you'd like to join my planet, it's okay to support me.
Join to learn: https://t.zsxq.com/jAi2nUf
6. Conclusion, a little advice
Maybe many friends have hundreds of gigabytes of data on their network disks, but they don't have time to look at them. It's outdated, but it feels like a peace of mind when it is placed on the network disk.
Brother Xiao Fu also collected materials before, filling up the 2T network disk, but I haven't read it for so many years. So do remember, don't be occupied by infinite materials and limited time, only systematic study can get the most. Only the pursuit of speed, that is the biggest learning obstacle!
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。