摘要: import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.ut 阅读全文
posted @ 2022-07-18 11:12 忆舒 阅读(115) 评论(0) 推荐(0) 编辑
摘要: // 第一种:获取类加载的根路径 File f = new File(this.getClass().getResource("/").getPath()); System.out.println(f); // 获取当前类的所在工程路径; 如果不加“/” 获取当前类的加载目录 D:\git\daot 阅读全文
posted @ 2022-07-18 10:36 忆舒 阅读(3654) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) throws IOException { //目标路径 String filePath = "E:"+File.separator+"test"+File.separator; File file = new File(f 阅读全文
posted @ 2022-04-28 16:00 忆舒 阅读(293) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> <script> var url; url = window.location.href; /* 获取完整URL */ alert(url); /* http: 阅读全文
posted @ 2022-04-26 14:36 忆舒 阅读(248) 评论(0) 推荐(0) 编辑
摘要: function exportPDF(id){ var begin,end; $.post("servlet/GetDataGrid", {'*op': "exportPDF", id: id , exe:1}, function(data) { if(data.success){ var tota 阅读全文
posted @ 2021-08-10 16:18 忆舒 阅读(251) 评论(0) 推荐(0) 编辑
摘要: import java.awt.image.BufferedImage; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.text.DecimalFormat; 阅读全文
posted @ 2021-08-09 12:54 忆舒 阅读(162) 评论(0) 推荐(0) 编辑
摘要: import java.awt.image.BufferedImage; import java.awt.image.renderable.ParameterBlock; import java.io.File; import java.io.FileOutputStream; import jav 阅读全文
posted @ 2021-08-09 10:57 忆舒 阅读(379) 评论(0) 推荐(0) 编辑
摘要: import com.itextpdf.text.Document; import com.itextpdf.text.Image; import com.itextpdf.text.Rectangle; import com.itextpdf.text.pdf.PdfWriter; import 阅读全文
posted @ 2021-08-09 10:53 忆舒 阅读(322) 评论(0) 推荐(0) 编辑