摘要:
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 阅读全文
posted @ 2016-02-29 16:15
huey2672
阅读(234)
评论(0)
推荐(0)
摘要:
The default MyBatis global settings, which can be overridden to better suit application-specific needs, are as follows: <settings> <setting name="cach 阅读全文
posted @ 2016-02-29 16:10
huey2672
阅读(238)
评论(0)
推荐(0)
摘要:
As discussed in the previous chapter, MyBatis simplifies the persistent logic implementation by abstracting JDBC. MyBatis uses JDBC under the hood and 阅读全文
posted @ 2016-02-29 16:08
huey2672
阅读(653)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2016-02-29 15:01
huey2672
阅读(334)
评论(0)
推荐(0)
摘要:
The properties configuration element can be used to externalize the configuration values into a properties file and use the properties' key names as p 阅读全文
posted @ 2016-02-29 14:58
huey2672
阅读(205)
评论(0)
推荐(0)
摘要:
The key component of MyBatis is SqlSessionFactory from which we get SqlSession and execute the mapped SQL statements. The SqlSessionFactory object can 阅读全文
posted @ 2016-02-29 14:51
huey2672
阅读(904)
评论(0)
推荐(0)