- 博客(11)
- 收藏
- 关注
原创 链表相关
1 单向链表是否有环设置两个指针p1和p2分别指向链表头部;同时向后移动两个指针,p1每次移动1个节点,p2每次移动两个节点;如果最后指向null则没有环;如果p1和p2指向的节点相同则证明有环; 2 找出有环单向链表的环入口根据1中找到相交节点之后,创建指针p3指向链表头部;同时移动p1和p3,分别每次移动一个节点;节点相等时即为入口节点; 3 判断两...
2016-10-08 15:44:33
113
原创 MySQL主从配置
1.环境Ubuntu 15.10, MySQL 5.7.142.Master 配置sudo vim /etc/my.cnf --修改my.cnf文件 添加如下内容log-bin=server-binserver-id=1 --唯一标识,可以取ip最后一段重启master数据库service mysql restart; 在master库创建一个用户,供s...
2016-10-08 15:28:39
100
原创 Ubuntu挂载局域网windows共享目录
主机系统windows7,主机上安装了Oracle VirtualBox,VirtualBox安装Ubuntu15.10第一步需要在主机windows7中简历共享目录 第二步在ubuntu上挂载共享目录 cd /mntsudo mkdir shares --创建要挂载的目标位置sudo mount -t cifs -o username=winshare,...
2016-09-23 10:39:32
548
原创 linxu(ubuntu)常用命令
1 catcat主要有三大功能:一次显示整个文件。$ cat filename从键盘创建一个文件。$ cat > filename (只能创建新文件,不能编辑已有文件.)将几个文件合并为一个文件: $cat file1 file2 > filecat [选项] [文件]...选项-A, --show-all 等价于 -vET-b, --number-nonblank...
2016-09-22 15:20:55
126
原创 Java内存模型
Java(JVM)内存模型正如你从上面的图片看到的,JVM内存被分成多个独立的部分。广泛地说,JVM堆内存被分为两部分——年轻代(Young Generation)和老年代(Old Generation)。年轻代年轻代是所有新对象产生的地方。当年轻代内存空间被用完时,就会触发垃圾回收。这个垃圾回收叫做Minor GC。年轻代被分为3个部分——Enden区和两个Survivor区...
2016-09-14 17:24:30
82
原创 Java集合
MapHashMap存入的键值对在取出的时候是随机的,也是我们最常用的一个Map.它根据键的HashCode值存储数据,根据键可以直接获取它的值,具有很快的访问速度。在Map 中插入、删除和定位元素,HashMap 是最好的选择。 hashcode一样时采用链表存储;java8,超过8个元素是采用红黑树; TreeMap基于红黑树实现,取出来的是排序后的键值对。...
2016-09-12 13:14:55
108
原创 Javascript 计算精度问题
页面上用javascript进行计算式经常会遇到精度问题,目前我们采用的方式是讲小数乘10的n次幂变为整数,然后在计算,/**处理运算精度丢失问题**/Number.prototype.add = function(num){ var str1 = this.toString(); var arr1 = str1.split('.'); var len1 ...
2016-02-24 17:49:34
94
原创 iVOS Document Image business
1. Create Document Image via DocumentImageJob2. Note selected queue3. Open Document Image Assignment, Click Status button, select the queue noted in step 2, dbclick uploaded image4. Assign Docume...
2013-11-06 14:59:13
102
原创 SQL Server 修改字段类型,重命名,删除字段
1. 修改字段类型alter table payment_bill_review alter column admitting_icd_code varchar(6) 2. 重命名exec sp_rename 'payment_bill_review.admitting_icd_code' ,'admitting_icd9_code', 'column' 3. 删除字段...
2013-10-16 09:55:10
720
原创 Spring - Initializing and destroying beans
1. 使用init-method和destroy-method属性:<bean id="kenny" class="com.springinaction.springidol.Instrumentalist"init-method="tuneInstrument"destroy-method="cleanInstrument"> <property name="
2013-01-21 11:55:47
105
原创 Spring bean's life
1. Spring instantiates the bean.2. Spring injects values and bean references into the bean's properties.3. If the bean implements BeanNameAware, Spring passes the bean's ID to the setBeanName() meth...
2013-01-21 11:18:51
122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人