04 2017 档案
摘要:我的svn版本 svn, version 1.7.14 (r1542130) compiled Nov 20 2015, 19:25:09 Copyright (C) 2013 The Apache Software Foundation. 我主要参考的是这两篇文章 Linux下安装SVN服务端简明
阅读全文
摘要:本文系转载,原文地址:http://singo107.iteye.com/blog/1175084 数据库事务的隔离级别有4个,由低到高依次为Read uncommitted、Read committed、Repeatable read、Serializable,这四个级别可以逐个解决脏读、不可重复
阅读全文
摘要:实体类Mapper接口 void addUser(User user); Mapper.xml <insert id="addUser" useGeneratedKeys="true" keyProperty="id"> insert into user_t(user_name,password,a
阅读全文
摘要:官方文档 Mapper接口 第一种方法 ArticleMapper.xml UserMapper.xml ArticleMapper.xml 中使用的是UserMapper的查询方法的接口,这样有两个查询语句,一个查询文章,一个查询用户。 这种方式很简单, 但是对于大型数据集合和列表将不会表现很好。
阅读全文
摘要:代码 打印出结果 [[I@4dc63996]1 Arrays.asList() asList方法输入的是一个泛型变长参数,基本类型不能泛型化的,但是程序没有报错,例子是把int类型的数组作为了T的类型,所以转换后再List就只有一个为int数组的元素 代码 输出 Exception in threa
阅读全文