In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
MyBatis introduced what is, I believe that many inexperienced people are helpless about this, this article summarizes the causes and solutions of the problem, through this article I hope you can solve this problem.
MyBatis is a framework for what?
mybatis is a framework that works at Java persistence layer, which is a SQL mapping framework that establishes mapping relationships between SQL statements and Java code. Because the vast majority of Java programmers 'programming habits are using Java APIs, this is the area they are most familiar with. So MyBatis is not an ORM.(Object Relational Mapping) framework, from the term ORM, you can see that there is no SQL at all, that is, to deliberately let developers ignore SQL, and only need to pay attention to the association relationship between Object and relational database. Of course, SQL is inevitably a bridge between Java API and relational database. What ORM does is it completely automates the process for you.
Mybatis focuses on mapping between SQL and Java API, which is its design purpose and principle, it separates SQL and Java API, so as not to pollute your Java code with a lot of SQL (of course, if you have seen the kind of SQL statements flooding different classes of code, you know what I am talking about). It maps relational data to Object automatically, probably because some people say it's half an ORM framework, and it makes sense from this point of view. (Personally, I don't think word games like this should be too concerned, or focus on the technology itself, what functions it has, and what we can do with it.)
History of MyBatis
MyBatis, formerly known as iBatis, was a project of the Apache Software Foundation until June 2011, and a statement on the iBatis homepage at the same time as version 3.0 was released that "Apache iBATIS has been retired" caused quite a stir in the community. After six years of Apache hosting, iBatis hosted the code in Google Code. The main reason given in the statement is that Google Code is better for developers to work together and is more adaptable to rapid release than Apache. At the same time, iBatis was renamed MyBatis.
Author & Founder of MyBatis
MyBatis was written and founded by Clinton Begin. Clinton Begin has established businesses in the video game industry, enterprise and open source communities. He has worked as a Senior Engineer and Agile Mentor consultant at industry renowned companies such as Riot Games, ThoughtWorks, Microsoft and Stanford University, and his experience spans a wide range of gaming, business and technology domains. Clinton has applied agile methodologies, open source software, Java,. NET and Go to the development of large-scale applications. He is an experienced coach, writer, speaker and trainer on a variety of technical and business topics. Clinton transforms product development teams through agile methodologies such as Lean, Scrum, and Extreme Programming, with technical expertise in practical Web application development, Web services, systems integration, cloud infrastructure deployment, and remote working capabilities.
MyBatis 'biggest advantage is that it retains the power of SQL, allowing developers to use SQL more flexibly (provided that you write SQL well), while keeping Java code as clean as possible. 2. MyBatis is lightweight, easy to learn, and developers can quickly learn how to use it for persistence layer development. MyBatis Disadvantages
MyBatis has the disadvantage that it is less scalable, and although it leaks an Interceptor interface, its scope is very limited. It also does not provide some SPI-like extension mechanism on some important component classes. This is very unfriendly for developers who need custom extensions.
After reading the above content, do you know how to introduce MyBatis? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.