【文件属性】:
文件名称:MyBatis使用TypeHandler示例
文件大小:18KB
文件格式:RAR
更新时间:2019-03-13 07:34:21
MyBatis
此项目为MyBatis使用TypeHandler的示例
注意,测试需要在MySql中建表
附:建表语句及数据,导入Mysql运行即可
在Mysql命令窗口输入
set names 'utf8';
source 1.sql
将以下文件保存为1.sql
DROP TABLE IF EXISTS `n1`;
CREATE TABLE `n1` (
`id` int(5) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`age` int(10) DEFAULT NULL,
`gender` varchar(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
LOCK TABLES `n1` WRITE;
INSERT INTO `n1` VALUES (1,'xu',10,'F'),(2,'X',NULL,'M'),(3,'test',40,'M'),(4,'TX',NULL,'F');
UNLOCK TABLES;
【文件预览】:
ZMyBatisTypeHandler
----.project(571B)
----pom.xml(936B)
----target()
--------test-classes()
--------classes()
----.settings()
--------org.eclipse.jdt.core.prefs(243B)
--------org.eclipse.m2e.core.prefs(90B)
----src()
--------test()
--------main()
----说明.txt(24B)
----.classpath(1KB)