摘要: 导出excel调用的方法 /** * * @param list 导出的数据集合 * @param request * @param response */ public static void exportExcel(List<Student> list, HttpServletRequest r 阅读全文
posted @ 2019-03-13 16:44 yvioo 阅读(1695) 评论(0) 推荐(0) 编辑
摘要: 使用jdk1.8和tomcat8环境 需要先引入jar或者依赖 package com.geturl; import net.sf.json.JSONObject; import org.apache.commons.lang.StringUtils; import org.apache.http. 阅读全文
posted @ 2019-03-13 16:41 yvioo 阅读(5268) 评论(6) 推荐(0) 编辑
摘要: /** * 生成六位随机数 * @return */ public static String getSixNum() { String str = "0123456789"; StringBuilder sb = new StringBuilder(4); for (int i = 0; i < 阅读全文
posted @ 2019-03-13 16:37 yvioo 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 1.获取全路径request.getRequestURL(); //得到http://localhost:8888/CRM/loginController/login 2.获取协议名和域名request.getScheme(); //得到协议名 例如:httprequest.getServerNam 阅读全文
posted @ 2019-03-13 14:44 yvioo 阅读(32169) 评论(0) 推荐(0) 编辑