Two documents to use MyBatis Guide: MyBatis and mybatis-spring

Source: Internet
Author: User
Tags i18n

Two documents to use MyBatis Guide: MyBatis and mybatis-spring

The beautiful Life of the Sun Vulcan (http://blog.csdn.net/opengl_es)

This article follows "Attribution-non-commercial use-consistent" authoring public agreement

Reprint Please keep this sentence: Sun Vulcan's Beautiful Life-this blog focuses on Agile development and mobile and IoT device research: IOS, Android, HTML5, Arduino, Pcduino , Otherwise, the article from this blog refused to reprint or re-reproduced, thank you for your cooperation.




MyBatis


Introduction What is MyBatis?

MyBatis is an excellent persistence layer framework that supports the customization of SQL, stored procedures, and advanced mapping. MyBatis avoids almost all JDBC code and manually set parameters and extracts the result set. MyBatis uses simple XML or annotations to configure and map primitives, mapping interfaces and Java POJOs (Plain old Java Objects, ordinary Java objects) to records in a database.

Help Improve documentation ...

No matter how you discover the lack of documentation, or if some features don't have documentation, the best thing you can do is to study it and write the document out.

The document Xdoc format source files are available through Git for the project. Fork the source library and send a pull request after the update.

You will be the best author of this document, and users like you will come and check it out.

Translated version (translations)

Other language versions (Users can read about MyBatis in following translations):

    • 中文版
    • Espa?ol
    • Japanese language
    • ???
    • Chinese Simplified

Do you want to read about MyBatis in your own native language? Fill an issue providing patches with your mother tongue documentation!




  • Reference documents
  • Brief introduction
  • Entry
  • XML Configuration
  • XML mapping file
    • select
    • insert, update and delete
    • Span class= "None" style= "font-style:italic;" > Parameters
    • Result Maps
    • auto-mapping
    • cache
  • Dynamic SQL
  • Java API
  • SQL Assembly Class
  • Log processing
  • Project documentation
  • Project information
  • Project Report





Mybatis-spring


Introduction What is Mybatis-spring?

Mybatis-spring will help you seamlessly integrate the MyBatis code into Spring. Using the classes in this class library, Spring will load the necessary MyBatis factory classes and session classes. This class library also provides a simple way to inject MyBatis data mapper and sqlsession into the business layer of beans. It also handles transactions, translating MyBatis exceptions to Spring's DataAccessException exceptions (data access exceptions, translator notes). Ultimately, it does not rely on mybatis,spring or mybatis-spring to build application code.

Motivation

As in the second edition, Spring 3.0 supports only iBatis2. So, we want to add MYBATIS3 support to Spring3.0 (refer to the problem in Spring Jira). Unfortunately, the development of Spring 3.0 ended before the official release of the MyBatis 3.0. Because the spring development team did not want to publish a MyBatis-based integration support for the non-release version, spring's official support would have to wait. To support the Mybatis,mybatis community in Spring, it is time to start integrating spring integration as a sub-project of the MyBatis community by uniting contributors and interested people.

Requirements

Before you begin to use mybatis-spring integration, it is important that you familiarize yourself with the Spring and MyBatis frameworks and the terminology associated with them, and this manual does not provide the basic content of both, installation and configuration tutorials.

Mybatis-spring requires Java 5 or higher and the following MyBatis and Spring versions:

mybatis-spring MyBatis Spring
1.0.0 and 1.0.1 3.0.1 to 3.0.5 3.0.0 or higher
1.0.2 3.0.6 3.0.0 or higher
1.1.0 3.1.0 or higher 3.0.0 or higher
Acknowledgements

Special thanks to those who made the project a reality (alphabetical order). Eduardo Macarron, Hunter presnall and Putthibong boonbong coding, testing and documentation modification work; Andrius Juozapaitis, Giovanni Cuccu,raj Nagappan and Tomas Pinos's contribution, and Simone Tripodi found these people and brought them into the project. Without their efforts, the project would not have existed.

  • REFERENCE Documentation
  • Brief introduction
  • Chapter II Introduction
  • Sqlsessionfactorybean
  • Chapter Fourth Business
  • The fifth chapter uses sqlsession
  • Sixth Chapter Injection Mapper
    • Mapperfactorybean
    • Mapperscannerconfigurer
  • Seventh chapter using MyBatis API
  • The eighth chapter example code
  • Project documentation
  • Project information
  • Project Report










Two documents to use MyBatis Guide: MyBatis and mybatis-spring

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.