In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Schematic diagram of mybatis framework (picture reference network)
Second, the frame schematic diagram explains:
1. Mybatis configuration
SqlMapConfig.xml, as the global configuration file of mybatis, configures the running environment of mybatis and other information. The mapper.xml file is the sql mapping file, which is configured with sql statements that operate the database. This file needs to be loaded in SqlMapConfig.xml
2. Construct SqlSessionFactory, namely session factory, through configuration information such as mybatis environment.
3. The sqlSession is created by the session factory, and the operation of the database needs to be done through sqlSession.
4. Mybatis defines the operation database of Executor executor interface. There are two implementations of Executor interface, one is basic executor and the other is cache executor.
5. Mapped Statement is also an underlying encapsulation object of mybatis, which wraps mybatis configuration information and sql mapping information. A sql in the mapper.xml file corresponds to a Mapped Statement object, and the id of sql is the id of Mapped statment.
6. Mapped Statment defines the input parameters for sql execution, including HashMap, basic types, and pojo,Executor maps the input java object to sql before executing sql through Mapped Statment. Input parameter mapping is to set parameters for preparedStatement in jdbc programming.
MappedStatement defines the output result of sql execution, including HashMap, basic types, and pojo,Executor maps the output result to the java object after performing sql through MappedStatement. The mapping process of the output result is equivalent to the parsing process of the result in jdbc transformation.
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.