摘要: 1 package com.cn; 2 3 class Test{ 4 public static void main(String [] args){ 5 TestThread t = new TestThread(); 6 new Thread(t).... 阅读全文
posted @ 2016-01-07 21:50 伊小白 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1 package com.cn; 2 3 class A{ 4 public void fun1(){ 5 System.out.println("A fun1"); 6 } 7 public void fun2(){ 8 fun1();... 阅读全文
posted @ 2016-01-06 22:16 伊小白 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 package com.cn; 2 3 public class Test { 4 public static void main(String agrs[]){ 5 Person p1 = Person.getInstances(); 6 Perso... 阅读全文
posted @ 2016-01-05 21:25 伊小白 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1 package com.cn; 2 3 public class Test { 4 public static void main(String agrs[]){ 5 int x = 1; 6 switch(x){ 7 case... 阅读全文
posted @ 2016-01-03 22:03 伊小白 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1)安装 a)安装gcc4.4环境: i. yum install gcc44 gcc44-c++ libstdc++44-devel gcc-c++ -y ii. 在/etc/profile中添加环境变量export CC=/usr/bin/gcc、export CXX=/usr... 阅读全文
posted @ 2015-09-02 16:30 伊小白 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 1) innodb_buffer_pool_size如果用Innodb,那么这是一个重要变量。相对于MyISAM来说,Innodb对于buffer size更敏感。MySIAM可能对于大数据量使用默认的key_buffer_size也还好,但Innodb在大数据量时用默认值就感觉在爬了。 Innod... 阅读全文
posted @ 2015-09-02 15:46 伊小白 阅读(18253) 评论(1) 推荐(3) 编辑
摘要: 引入kaptcha-2.3-jdk15.jar包在web.xml中进行配置 Kaptcha com.google.code.kaptcha.servlet.KaptchaServlet kaptcha.border no kaptcha.textproducer.char... 阅读全文
posted @ 2015-08-26 00:20 伊小白 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 转载 阅读全文
posted @ 2015-08-21 15:59 伊小白 阅读(852) 评论(0) 推荐(0) 编辑
摘要: 利用JSONArray转换list定义的model: 1 package com.yds.model; 2 3 import java.util.Date; 4 5 6 7 public class DeviceHistory { 8 9 private int id; 10 ... 阅读全文
posted @ 2015-08-18 21:40 伊小白 阅读(1111) 评论(0) 推荐(0) 编辑