花费 27 ms
为java类起别名

<typeAliases> <!-- 1、typeAlias:为某个java类型起别名 type:指定要起别名的类型全类名;默认别名就是类名小写;employee alias:指定新 ...

Sun Mar 11 07:39:00 CST 2018 0 3736
使用Map接收返回数据库的数据

查询返回值是map类型的一条数据 1 首先在接口中写方法 public interface EmployeeMapper { //返回一条记录的map;key就是列名,值就是对应的值 publ ...

Mon Mar 12 03:52:00 CST 2018 0 3207
使用foreach进行批量更新

public void addEmps(@Param("emps")List<Employee> emps); 2映射文件配置 <!-- 批量保存 --> <!-- ...

Wed Mar 14 22:41:00 CST 2018 0 1996
使用collection查询集合属性

介绍resultMap中使用collection查询集合属性 业务需求,查询部门中的多个人员 public class Department { private Integer id; priv ...

Mon Mar 12 22:18:00 CST 2018 0 1442
Mybaits查询返回值是List类型的

查询返回值是list类型的 1 首先在接口中写方法 public interface EmployeeMapper { public List<Employee> getEmpsByL ...

Mon Mar 12 02:51:00 CST 2018 0 1313

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM