摘要: 转自:http://blog.csdn.net/u013310119/article/details/51137519 范围和生命周期 理解我们目前已经讨论过的不同范围和生命周期类是很重要的。不正确的使用它们会导致严重的并发问题。 SqlSessionFactoryBuilder 这个类可以被实例化 阅读全文
posted @ 2017-03-05 15:06 hylinux 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 查询得到男性或女性的数量, 如果传入的是0就女性否则是男性 1、创建表与存储过程 参数:IN `sex_id` int,OUT `user_count` int 2、创建表所对应的实体类 3、创建puserMapper文件 4、在Mybaits文件中注册puserMapper ’ 5、测试代码 6、 阅读全文
posted @ 2017-03-05 14:55 hylinux 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 这段时间想把我写的东西上传到github上,所以开始收集资料学习,走了很多弯路( msysgit和极慢的FQ网速让我欲仙欲死),最后找到了比较好用的工具gitHub desktop。在此做出详细记录。 一、第一步 注册github账号 1.注册界面 https://github.com/,如下图: 阅读全文
posted @ 2017-03-05 11:11 hylinux 阅读(800) 评论(0) 推荐(0) 编辑
摘要: How to fix this error while installing github on windows 7/8/8.1 64bit???? How to fix this error while installing github on windows 7/8/8.1 64bit???? 阅读全文
posted @ 2017-03-05 11:09 hylinux 阅读(793) 评论(0) 推荐(0) 编辑
摘要: 主要通过员工与部门属性的关联测试代码说明 1、环境准备,建表 员工表 部门表 2、创建表所对应的实体类 员工类 部门类 3、创建employeeMapper映射,查询所有员工信息 4、在Mybaits配置文件中注册employMapper 5、测试代码 6、观察结果 阅读全文
posted @ 2017-03-05 00:29 hylinux 阅读(201) 评论(0) 推荐(0) 编辑