02 2016 档案
MyBatis(3.2.3) - Configuring MyBatis using XML, Mappers
摘要: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)
MyBatis(3.2.3) - Configuring MyBatis using XML, Settings
摘要: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)
MyBatis(3.2.3) - Configuring MyBatis using XML, typeHandlers
摘要: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)
MyBatis(3.2.3) - Configuring MyBatis using XML, typeAliases
摘要: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)
MyBatis(3.2.3) - Configuring MyBatis using XML, Properties
摘要: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 阅读(204) 评论(0) 推荐(0)
MyBatis(3.2.3) - Configuring MyBatis using XML, Environment
摘要: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)
MyBatis(3.2.3) - hello world
摘要:1. 创建数据表(MySQL): DROP TABLE IF EXISTS `department`; CREATE TABLE `department` ( `did` int(10) unsigned NOT NULL AUTO_INCREMENT, `dept_name` varchar(12 阅读全文
posted @ 2016-02-27 10:43 huey2672 阅读(395) 评论(0) 推荐(0)