javase
文章平均质量分 77
大头症的鱼
这个作者很懒,什么都没留下…
展开
-
itext 生成pdf 代码
Document doc = new Document(PageSize.A4); Image jpeg; try { PdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream("E:/pdfrest/motel.pd原创 2014-01-27 10:27:49 · 567 阅读 · 0 评论 -
java web項目 物理路徑
如request.getSession().getServletContext().getRealPath("/images/motel.png") 這個獲得的就是web-root下的images下的motel.png图片 相对路径 request.getContextPath() // web项目下绝对路径原创 2014-01-27 10:29:16 · 434 阅读 · 0 评论 -
数据批量导出为excel格式文件
工具类 public class Exportxls { /** * 样式设置 */ public static HSSFCellStyle createCellStyle(HSSFWorkbook workbook){ // *生成一个样式 HSSFCellStyle style = workbook.c转载 2014-02-10 10:56:56 · 616 阅读 · 0 评论