- 博客(7)
- 收藏
- 关注
原创 list 转换 map
public static Map> findByIdMap(PlanInfo plan) { Map> map = new HashMap>(); List helplist = plan.getPointList(); List list = null; int day = 1; for (int i = 0; i if (i == 0) li
2013-03-18 10:50:55
525
原创 过滤html
public static String removeTagFromText(String content) { Pattern p = null; Matcher m = null; String value = null; // 去掉 p = Pattern.compile("(]*>)"); m = p.matcher(content); Strin
2013-03-18 10:47:20
487
原创 创建路径
import java.io.File;/** * 构建路径 * @param stopath * @return */ public static String getPathPath(String stopath){ // path : stopath/planpdf/ym/dd/ DateFormat ym = new SimpleD
2013-03-18 10:34:09
631
原创 iText pdf下载-未整理完
public List getmapstr(List list){ List mapstr = new ArrayList(); StringBuffer markers = new StringBuffer(); StringBuffer markerStyles = new StringBuffer(); StringBuffer markersdes =
2013-03-14 16:43:38
1401
转载 ItextAsian中文字体
使用iTextAsian.jar中的字体 BaseFont.createFont("STSong-Light", "UniGB-UCS2-H",BaseFont.NOT_EMBEDDED);2、使用Windows系统字体(TrueType) BaseFont.createFont("C:/WINDOWS/Fonts/SIMYOU.TTF", BaseFont.IDENTITY_H,
2013-03-13 11:10:56
2891
原创 图片上传
方法体@RequestMapping(value = "/upload", method = RequestMethod.POST) public void processImageUpload(@RequestParam("img") MultipartFile file, HttpServletRequest request, HttpServletResponse response)
2012-11-12 16:48:05
361
原创 excel 下载
导入的包import java.io.BufferedInputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;
2012-11-12 16:39:18
373
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人