摘要: /* * To change this template, choose Tools | Templates * and open the template in the editor. */package controller.groupbuying.navigate;/** * * @autho... 阅读全文
posted @ 2016-01-22 10:27 道行太浅 阅读(1666) 评论(0) 推荐(0) 编辑
摘要: 程序员面试指南:https://www.youtube.com/watch?v=0xcgzUdTO5MJava面试问题集合指南:https://www.youtube.com/watch?v=GnR4hCvEIJQ什么是可变参数?断言的用途?什么时候使用断言?什么是垃圾回收?用一个例子解释垃圾回收?... 阅读全文
posted @ 2016-01-08 10:47 道行太浅 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 如何打乱一个顺序的数组,其实集合的帮助类Collection就有现成的方法可用,而且效率还蛮高的,总比自定义随机数等等方法要好很多。其实乱序就这么简单,步骤如下:1. 将一个顺序排列的数组添加到集合中2. 可以用集合帮助类Collections的shuffle()方法3. 用hasNext()、ne... 阅读全文
posted @ 2015-12-28 11:18 道行太浅 阅读(3862) 评论(0) 推荐(1) 编辑
摘要: 1、启动一个WEB项目的时候,WEB容器会去读取它的配置文件web.xml,读取和两个结点。2、紧急着,容创建一个ServletContext(servlet上下文),这个web项目的所有部分都将共享这个上下文。3、容器将转换为键值对,并交给servletContext。4、容器创建中的类实例,创建... 阅读全文
posted @ 2015-12-25 11:02 道行太浅 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 1 public class CreateWordDemo { 2 public void createDocContext(String file) throws DocumentException,IOException { 3 // 设置纸张大小 4 ... 阅读全文
posted @ 2015-12-22 17:15 道行太浅 阅读(8918) 评论(3) 推荐(0) 编辑
摘要: 在后台往前台传json值得时候要加response.setContentType("text/html;charset=utf-8");//必须加上response.getWriter().print(JSONObject.fromObject(importExcelProgressDto));这样... 阅读全文
posted @ 2015-12-22 17:14 道行太浅 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1 //待压缩的文件目录 2 String sourceFile=sourceFilePath+"\\"+userName; 3 //存放压缩文件的目录 4 String zipFilePath = sourceFilePath; 5 //zip文件名字,不加zip 方法里面有 6 fileN... 阅读全文
posted @ 2015-12-22 17:13 道行太浅 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 将下面代码拷贝进一个html文件中就可以运行查看效果。function downLoad(evt) { disabledButton(); MyPeriodicalExecuter(evt); } function disab... 阅读全文
posted @ 2015-12-22 17:12 道行太浅 阅读(5419) 评论(0) 推荐(0) 编辑
摘要: 一、简介线程池类为 java.util.concurrent.ThreadPoolExecutor,常用构造方法为: ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit 阅读全文
posted @ 2015-12-22 17:08 道行太浅 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 1 package com.baqingshe.bjs.util; 2 3 import java.io.BufferedReader; 4 5 import java.io.IOException; 6 7 import java.io.InputStream; 8 9... 阅读全文
posted @ 2015-12-22 17:06 道行太浅 阅读(250) 评论(0) 推荐(0) 编辑