摘要:
1 public class ExcelToImage { 2 3 /** 4 * 临时文件夹 5 */ 6 private static String UPLOAD_DIR = "upload" + File.separator; 7 /** 8 * 获取上传的文件 9 * @param up... 阅读全文
摘要:
1 public class ImageFixSizeUtil { 2 3 /** * 图片文件读取 * * @param srcImgPath * @return */ 4 private static BufferedImage InputImage(String srcImgPath) { 5 BufferedImage srcImag... 阅读全文
摘要:
1 public class PdfToImage { 2 3 private static String UPLOAD_DIR = "upload" + File.separator; 4 5 /** 6 * 获取上传的文件 7 * @param uploadPath 8 * @param file ... 阅读全文
摘要:
public class SshConnTool { private Connection conn; private String ipAddr; private String charset = Charset.defaultCharset().toString(); private String userName; private String password; pub... 阅读全文
摘要:
private Boolean isOutside(HttpServletRequest request) { Boolean result = false; // 获取客户端IP地址,考虑反向代理的问题 String ip = request.getHeader("x-forwarded-for"); if (StringUtil... 阅读全文