摘要:
Mapper XML files contain the mapped SQL statements that will be executed by the application using statement id. We need to configure the locations of 阅读全文
摘要:
The default MyBatis global settings, which can be overridden to better suit application-specific needs, are as follows: <settings> <setting name="cach 阅读全文
摘要:
As discussed in the previous chapter, MyBatis simplifies the persistent logic implementation by abstracting JDBC. MyBatis uses JDBC under the hood and 阅读全文
摘要:
In the SQL Mapper configuration file, we need to give the fully qualified name of the JavaBeans for the resultType and parameterType attributes. An ex 阅读全文
摘要:
The properties configuration element can be used to externalize the configuration values into a properties file and use the properties' key names as p 阅读全文
摘要:
The key component of MyBatis is SqlSessionFactory from which we get SqlSession and execute the mapped SQL statements. The SqlSessionFactory object can 阅读全文