- 博客(3)
- 资源 (1)
- 收藏
- 关注
转载 使用Result代替ResultSet作为方法返回值
在开发过程中,我们不能将ResultSet对象作为方法的返回值,因为Connection连接一旦关闭,在此连接上的会话和在会话上的结果集也将会自动关闭,而Result对象则不会发生这种现象,所以在查询时尽量以Result对象作为方法返回值。 1 2 3 4 5 6 7 8 9 10 11 12
2018-01-27 21:16:33 2182
转载 Java遍历Map对象的四种方式
关于java中遍历map具体哪四种方式,请看下文详解吧。 方式一 这是最常见的并且在大多数情况下也是最可取的遍历方式。在键值都需要时使用。 1 2 3 4 Map<Integer, Integer> map = new HashMap<Integer, Integer>(); for (Map.Entry<In
2018-01-27 21:14:14 133
原创 mybatis传入List<Map>批量插入
<insert id="insertBaseCommPara" parameterType="List"> INSERT INTO table_name(xxx,xxxx,xxxxx,xxxxx) VALUES <foreach collection="list" index="index" item="item" separator=","
2018-01-26 21:09:55 12133 3
C语言小学数学出题系统
2013-07-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人