摘要: 1.实体类 public class DictTreePair implements Serializable { private static final long serialVersionUID = 1L; /** * 字典类型 */ @ApiModelProperty("字典类型") pri 阅读全文
posted @ 2022-04-16 15:55 南山下的采药人 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 场景:在 jsp 页面中获取到 input 框的中文值,作为参数通过 ajax 传递到后端会出现乱码现象 解决方法: 在 jsp 页面中使用 JavaScript 的 encodeURI() 函数对中文参数进行编码: var chinaName = jQuery("#chinaName ").val 阅读全文
posted @ 2021-04-07 18:20 南山下的采药人 阅读(300) 评论(0) 推荐(0) 编辑
摘要: poi生成excel文件时报错,解决方法: 1.将文件名后缀.xls改成.xlsx 2.使用的类HSSFWorkbook、HSSFSheet等修改为XSSFWorkbook、XSSFSheet 3.使用XSSFWorkbook需要引入相应的JAR包,版本要保持一致 <dependency> <gro 阅读全文
posted @ 2021-03-12 12:02 南山下的采药人 阅读(853) 评论(0) 推荐(0) 编辑
摘要: import java.util.Random; public class RandomPassword { public static void main(String[] args) { // int i =(int)(8+Math.random()*(20-8+1)); int i=8; Ra 阅读全文
posted @ 2021-03-04 16:52 南山下的采药人 阅读(143) 评论(0) 推荐(0) 编辑
摘要: public class BubbleSort1 { /** *冒泡排序Java版:每次比较两个相邻的元素,将较大的元素交换至右(左)端 */ //冒泡排序基础版 public int [] A(int [] arr){ int temp; for (int i = 0; i < arr.lengt 阅读全文
posted @ 2021-03-04 16:48 南山下的采药人 阅读(47) 评论(0) 推荐(0) 编辑
摘要: import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import o 阅读全文
posted @ 2021-03-04 16:41 南山下的采药人 阅读(98) 评论(0) 推荐(0) 编辑
摘要: //读取excel public static Workbook readExcel(String filePath){ Workbook wb = null; if(filePath==null){ return null; } String extString = filePath.substr 阅读全文
posted @ 2021-03-04 16:24 南山下的采药人 阅读(260) 评论(0) 推荐(0) 编辑
摘要: ; cpic.util = {}; /**** * 校验 * @param elementsId * @param validateRequired required是否校验(暂存时) * @param context * @returns {Boolean} */ cpic.util.doVali 阅读全文
posted @ 2021-03-04 16:13 南山下的采药人 阅读(103) 评论(0) 推荐(0) 编辑
摘要: +function tab($){ //警告框 $.fn.alert = function(e){ var $this = $(this); $this.find('.close').click(function(){ $this.fadeOut(250); }); }; //一、二级菜单 $.fn 阅读全文
posted @ 2021-03-04 16:09 南山下的采药人 阅读(129) 评论(0) 推荐(0) 编辑
摘要: /**** * 给指定的button创建上传操作 */ ;cpic.upload = function(attachButtonId, isRead) { var code = isRead?"ECM0002":"ECM0001"; var formId = "_" + attachButtonId 阅读全文
posted @ 2021-03-04 16:06 南山下的采药人 阅读(178) 评论(0) 推荐(0) 编辑