All source code for the project can be found in the repository linked here: github.com/chenhaoxian…

The article directories

  • Chapter 11 XML mapping file of MyBatis
    • 11.1 Query (SELECT)
      • A simple SELECT element
      • JDBC preprocessed statements
      • Attributes in the select tag
      • The attributes of the select element
  • 11.1.1 SQL elements
    • SQL element definition
    • Dynamically inject the value of ${} in the SQL element
    • Include is nested
    • The result of the select element nesting include

Chapter 11 XML mapping file of MyBatis

This chapter is all about the real power of MyBatis, its mapping statements. The MAPper’S XML file is relatively simple.

In the SQL mapping file, there are the following top-level elements (listed in the order they are defined &#)