10 2017 档案

摘要:UploadFile package com.sys.CommonUtil; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputSt... 阅读全文
posted @ 2017-10-27 11:38 冬天不眠 阅读(148) 评论(0) 推荐(0)
摘要:package Test; import java.awt.BasicStroke; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Shape; import java.awt.geom.RoundRectangle2D; import java.awt.... 阅读全文
posted @ 2017-10-27 11:34 冬天不眠 阅读(568) 评论(0) 推荐(0)
摘要:package Test; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.Date; /** * 功... 阅读全文
posted @ 2017-10-27 11:31 冬天不眠 阅读(162) 评论(0) 推荐(0)
摘要:import java.awt.image.BufferedImage; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileOutputStream; import javax.imageio.ImageIO; p... 阅读全文
posted @ 2017-10-27 11:30 冬天不眠 阅读(278) 评论(0) 推荐(0)
摘要:String uto="xxxx@qq.com";//获取收件人邮箱 String topic="xxxx";//发送主题 String content="xxxx";//发送内容 String sendemail="xxxx@163.com"; String sendname="xxxxx"; S 阅读全文
posted @ 2017-10-27 11:24 冬天不眠 阅读(187) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-10-27 11:21 冬天不眠 阅读(543) 评论(0) 推荐(0)
摘要:import java.security.MessageDigest; public class MD5Util { /*** * MD5加密 生成32位md5码 * @param 待加密字符串 * @return 返回32位md5码 */ public static String MD5(String inStr) throws Exc... 阅读全文
posted @ 2017-10-27 11:20 冬天不眠 阅读(142) 评论(0) 推荐(0)
摘要:public class DESUtil { private static String strdefaultkey = "13456789abcd";//默认的key private Cipher encryptCipher = null;//加密 private Cipher decryptCipher = null;//解密 public static S... 阅读全文
posted @ 2017-10-27 11:19 冬天不眠 阅读(202) 评论(0) 推荐(0)
摘要:public class AESUtil { public static void main(String[] args){ jdkAES("12345623423432423S"); } public static void jdkAES(String str){ try { SecureRandom random = n... 阅读全文
posted @ 2017-10-27 11:18 冬天不眠 阅读(231) 评论(0) 推荐(0)
摘要:/** 日志记录 * @author sys * @param content 要写入的类容 * @param path 目标路径 c:/log/ * @param filename 文件名 log.txt */ public static void writeFileToLoaction(String content,String pa... 阅读全文
posted @ 2017-10-27 11:16 冬天不眠 阅读(843) 评论(0) 推荐(0)
摘要:public class ImgBase64 { public static void main(String[] args) //测试 { String strImg = GetImageStr(); System.out.println(strImg); } ... 阅读全文
posted @ 2017-10-27 11:12 冬天不眠 阅读(167) 评论(0) 推荐(0)
摘要:public void upload(MultipartFile file, String saveurl,String showurl,) throws Exception { try { String suffix = file.getOriginalFilename().substring( //文件后缀 file.getOriginalF... 阅读全文
posted @ 2017-10-27 10:40 冬天不眠 阅读(310) 评论(0) 推荐(0)
摘要:// 判断是否同个域名 public static boolean validate(HttpServletRequest request) { String Referer = ""; boolean referer_sign = true; // true 站内提交,验证通过 //false 站外提交,验证失败 Enumeration ... 阅读全文
posted @ 2017-10-27 10:30 冬天不眠 阅读(871) 评论(0) 推荐(0)
摘要:/** * 计算点 是否在一个固定点的半径范围内 * @2016年10月20日 * @param a 经度1 已知 * @param b 纬度1 已知 * @param x 经度2 * @param y 纬度2 * @param r 半径(米)比较的半径距离 * @return object[0]是否在... 阅读全文
posted @ 2017-10-27 10:27 冬天不眠 阅读(973) 评论(0) 推荐(0)
摘要:/** * * @param urlStr * url * @param content * 提交的参数 * @param encoding * 编码格式 * @return */ public static String getU... 阅读全文
posted @ 2017-10-27 10:23 冬天不眠 阅读(6479) 评论(0) 推荐(0)
摘要://** poi jar包//public class ReadExcel { @SuppressWarnings("static-access") private static String getValue(HSSFCell hssfCell) { if (hssfCell.getCellType() == hssfCell.CELL_TY... 阅读全文
posted @ 2017-10-27 10:20 冬天不眠 阅读(1645) 评论(0) 推荐(0)
摘要:经过一周的加班加点开发,xxx有机商城小程序终于接近尾声,来到支付这一块了。由于用户的域名备案问题(小程程上线必须要域名)还没申请下来,只好暂且使用公司域名调试 万事俱备,只欠东风。微信小程序支付。省略申请时间。。。。。。。。 着手开发支付。。。。。 1 获取用户openid正常 2 微信支付统一下 阅读全文
posted @ 2017-10-10 10:50 冬天不眠 阅读(917) 评论(0) 推荐(0)
摘要:1 pom.xml添加依赖 # spring redisspring.redis.host=127.0.0.1spring.redis.port=6379#spring.redis.database=0spring.redis.pool.max-idle=100spring.redis.pool.m 阅读全文
posted @ 2017-10-10 10:26 冬天不眠 阅读(1288) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-10-10 10:16 冬天不眠 阅读(174) 评论(0) 推荐(0)