随笔分类 -  Java

摘要:package httptest; import java.io.IOException; import java.nio.charset.Charset; import java.security.KeyManagementException; import java.security.KeyStoreException; import java.security.NoSuchAlgorit... 阅读全文
posted @ 2016-06-09 11:33 yshy 阅读(9636) 评论(0) 推荐(0)
摘要:Map<String, String[]> map = request.getParameterMap(); for(Map.Entry<String,String[]> e:map.entrySet()){ System.out.println(e.getKey()+" >"+e.getValue 阅读全文
posted @ 2016-04-27 14:25 yshy 阅读(242) 评论(0) 推荐(0)
摘要:IDE:NetBeans8.0项目结构:(1)新建接口Hello.javapackage com.test;/** * @author y * @date 2015-9-5 7:51:29 * @version 1.0 * @desc */public interface Hello... 阅读全文
posted @ 2015-09-05 08:14 yshy 阅读(601) 评论(0) 推荐(0)
摘要:public class MapUtil { public static Object convert2Object(Class clazz,Map map) throws IntrospectionException, InstantiationException, ... 阅读全文
posted @ 2015-08-11 17:41 yshy 阅读(3163) 评论(0) 推荐(0)
摘要:request.getParameterMap()获取到的是:Map,key对应一个数组. 阅读全文
posted @ 2015-08-11 17:39 yshy 阅读(195) 评论(0) 推荐(0)
摘要:public class ImgeUtils { public static String img2String(BufferedImage img,String type){ String imgStr = null; ByteArrayOutp... 阅读全文
posted @ 2015-06-30 18:03 yshy 阅读(563) 评论(0) 推荐(0)
摘要:public static void compressPic(){ try { Thumbnails.of(new File("/home/y/my_temp/ydbg-xy-pic").listFiles()) .size(... 阅读全文
posted @ 2015-06-18 17:29 yshy 阅读(1152) 评论(0) 推荐(0)
摘要:public static void renamePic(){ File f = new File("/home/y/my_temp/ydbg-xy-pic-dest"); File files[] = f.listFiles(); for(... 阅读全文
posted @ 2015-06-18 17:23 yshy 阅读(529) 评论(0) 推荐(0)
摘要:net.coobird.thumbnailator.tasks.UnsupportedFormatException: No suitable ImageReader found for source data. at net.coobird.thumbnailator.tasks.io.In... 阅读全文
posted @ 2015-06-14 09:13 yshy 阅读(15496) 评论(5) 推荐(0)
摘要:package com.ydbg.gis.utils;import java.sql.SQLException;import java.util.List;import java.util.Map;import java.util.logging.Level;import java.util.log... 阅读全文
posted @ 2015-05-10 11:07 yshy 阅读(397) 评论(0) 推荐(0)
摘要:/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open ... 阅读全文
posted @ 2015-05-06 23:45 yshy 阅读(298) 评论(0) 推荐(0)
摘要:工程列表:(1)web.xml org.quartz.ee.servlet.QuartzInitializerListener (2)quartz.properties# ------------------... 阅读全文
posted @ 2015-05-06 22:59 yshy 阅读(445) 评论(0) 推荐(0)
摘要:public String getFaGuiKuTitles(String type, int page) { String href = "http://info.qd-n-tax.gov.cn/NewFaGuiKu/"+type+"/"; String baseUrl... 阅读全文
posted @ 2015-05-06 13:15 yshy 阅读(642) 评论(0) 推荐(0)
摘要:package com.des.test;import java.io.UnsupportedEncodingException;import java.security.InvalidKeyException;import java.security.NoSuchAlgorithmExceptio... 阅读全文
posted @ 2015-04-22 17:43 yshy 阅读(453) 评论(0) 推荐(0)
摘要:四月 16, 2015 5:26:41 下午 org.apache.commons.httpclient.HttpMethodBase processCookieHeaders警告: Cookie rejected: "$Version="1"; BAIDUID="1E6B32311ACAB6881... 阅读全文
posted @ 2015-04-16 17:29 yshy 阅读(1632) 评论(0) 推荐(1)
摘要:一:服务端:一个普通java web工程package com.wzh.file;import com.sun.xml.ws.developer.StreamingAttachment;import java.io.BufferedOutputStream;import java.io.File;i... 阅读全文
posted @ 2015-04-16 15:58 yshy 阅读(4352) 评论(0) 推荐(0)
摘要:基于dom4j-1.6.1.jarimport java.io.IOException;import java.io.StringWriter;import java.util.ArrayList;import java.util.HashMap;import java.util.Iterator;... 阅读全文
posted @ 2015-04-16 12:43 yshy 阅读(8430) 评论(0) 推荐(0)
摘要:1:懒汉式,不保证线程安全package com.yan.singleton;public class LazySingleton { private static final LazySingleton instance = null; private LazySingleto... 阅读全文
posted @ 2015-04-12 22:09 yshy 阅读(205) 评论(0) 推荐(0)
摘要:public static String getComparedSBQDate(String yxqq,String starttime){ String str = starttime; SimpleDateFormat sdf = new SimpleDateForm... 阅读全文
posted @ 2015-04-10 15:53 yshy 阅读(463) 评论(0) 推荐(0)
摘要:Oracle数据库端测试环境见:http://www.cnblogs.com/yshyee/p/4392328.htmlpackage com.mw.utils;import java.sql.Connection;import java.sql.SQLException;import java.u... 阅读全文
posted @ 2015-04-04 16:24 yshy 阅读(433) 评论(0) 推荐(0)