摘要: jsp页面代码 请选择上传的文件: 请选择上传的文件: ... 阅读全文
posted @ 2014-04-01 10:26 流星焱雨 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 定义两个被调度的类public class QuartzJob { public void work() { System.out.println(Spring Quartz的任务调度1被调用!"); //定时调用的业务逻辑 } } public class QuartzJob2{ public void work() { System.out.println(Spring Quartz的任务调度2被调用!"); //定时调用的业务逻辑 ... 阅读全文
posted @ 2014-03-21 09:44 流星焱雨 阅读(9484) 评论(0) 推荐(2) 编辑
摘要: "/>点击复制 引用js,还要导入ZeroClipboard.swf 放在js目录下style="position: relative;" 定位 阅读全文
posted @ 2014-03-11 16:59 流星焱雨 阅读(1777) 评论(0) 推荐(0) 编辑
摘要: import java.net.InetAddress;import java.net.UnknownHostException;public class GetLocalIP { public static void main(String[] args) { try { InetAddress addr = InetAddress.getLocalHost(); String ip=addr.getHostAddress().toString();//获得本机IP String address=addr.... 阅读全文
posted @ 2014-03-11 09:04 流星焱雨 阅读(325) 评论(0) 推荐(0) 编辑
摘要: /** * *删除D盘下面test目录,感觉以前用io流遍历删除好慢! * **/public static void main(String[] args) { Runtime run = Runtime.getRuntime(); try { String cmd="cmd /c rd/s/q "+"D:\\test";//pc下 //s 除目录本身外,还将删除指定目录下的所有子目录和文件,用于删除目录树。 //q 安静模式 //s 删除目录树时不要求确认 ... 阅读全文
posted @ 2014-03-07 18:01 流星焱雨 阅读(1165) 评论(0) 推荐(0) 编辑
摘要: ORDERBY子句中的列必须包含在聚合函数或GROUPBY子句中。slect * from table group by class,id order by idslect * from table group by class,id order by class 阅读全文
posted @ 2014-03-07 15:58 流星焱雨 阅读(26533) 评论(0) 推荐(0) 编辑
摘要: public static int random(){ int[] array = {0,1,2,3,4,5,6,7,8,9}; Random rand = new Random(); for (int i = 10; i > 1; i--) { int index = rand.nextInt(i); int tmp = array[index]; array[index] = array[i - 1]; array[i - 1] = tmp; } ... 阅读全文
posted @ 2014-02-21 14:30 流星焱雨 阅读(7373) 评论(1) 推荐(1) 编辑
摘要: public class tt { /** * 不用第三个变量互换2变量的值 * @author gx * Feb 10, 2014 2:46:37 PM */ public static void main(String[] args) { int a = 5; int b = 6; a = a+b; b = a-b; a = a-b; System.out.println(a+" "+b); a=a^b; b=... 阅读全文
posted @ 2014-02-10 14:52 流星焱雨 阅读(314) 评论(1) 推荐(0) 编辑
摘要: 14"> ... 阅读全文
posted @ 2014-01-24 18:07 流星焱雨 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 显示 xianshi 因为第一行的tr作为表格头有颜色,所有上面循环从1开始。java技术交流群:57388149 阅读全文
posted @ 2014-01-17 16:18 流星焱雨 阅读(749) 评论(0) 推荐(0) 编辑