摘要: 在使用Mybatis过程中,有需要通过SQL直接计数或求和的需求,需要自定义<resultMap>,而这些<resultMap>往往会与数据库映射直接生成的<resultMap>有关联,会用到 resultMap 继承,这里简单演示一下: mapper定义如下: //查询时间段内用户列表 List< 阅读全文
posted @ 2020-12-24 20:19 雪山上的蒲公英 阅读(831) 评论(0) 推荐(0) 编辑
摘要: 进行对象复制时,很多框架提供了公共方法,如org.springframework.beans.BeanUtils#copyProperties,org.apache.commons.beanutils.PropertyUtils#copyProperties,org.apache.commons.b 阅读全文
posted @ 2020-12-24 10:03 雪山上的蒲公英 阅读(659) 评论(0) 推荐(0) 编辑
/* 返回顶部代码 */