上一页 1 2 3 4 5 6 7 8 9 ··· 27 下一页
摘要: 多线程工具类: /** * ThreadPoolUtil.java */ package com.lbs.util; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; 阅读全文
posted @ 2020-06-04 14:25 AlphaJunS 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 统计某字段重复记录 select 字段名, count(字段名) from test group by name having count(字段名) > 1; 阅读全文
posted @ 2020-05-14 20:45 AlphaJunS 阅读(1644) 评论(0) 推荐(0) 编辑
摘要: Linux输入命令时,ctrl+a光标回到行首;ctrl+e光标跳至末尾 阅读全文
posted @ 2020-05-14 20:22 AlphaJunS 阅读(6603) 评论(0) 推荐(0) 编辑
摘要: easyUI前端页面存在分页,当需要对所有数据进行校验时,需要在后台对所有数据进行校验,不能只用js校验当前页的数据 阅读全文
posted @ 2020-05-06 21:46 AlphaJunS 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-06 21:42 AlphaJunS 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 结合前篇easyUI前端ajax上传文件组件 读取Excel工具类 及springMVC上传文件 后台代码 controller @RequestMapping("/excelUploadItemList") @ResponseBody public CommonResponse excelUplo 阅读全文
posted @ 2020-04-19 00:10 AlphaJunS 阅读(856) 评论(0) 推荐(0) 编辑
摘要: ExcelPublic.java,其中包含读取Excel第一行(一般为标题行),读取所有Excel中所有数据(包括标题行),读取表头字段在excel中的位置(列值)等方法。 poi版本为3.15,数据库为MySQL 测试Excel和s数据库结果如下: ExcelPublic.java package 阅读全文
posted @ 2020-04-18 23:30 AlphaJunS 阅读(937) 评论(0) 推荐(0) 编辑
摘要: 在上篇easyUI配合PageHelper实现分页的基础上,实现前端页面上传文件组件 其中itemList.jsp页面中文件上传dialog 页面效果 itemList.js导入方法定义 /** * 导入商品列表 */ function importItemList() { $('#excelImp 阅读全文
posted @ 2020-04-17 22:41 AlphaJunS 阅读(1315) 评论(0) 推荐(0) 编辑
摘要: 使用easyUI分页,后台返回页面需要当前页需要显示的数据rows,数据库总条数total 后端采用的pageHelper帮助分页,mybatis使用pageHelper分页 前端js封装获取easyUI datagrid对象 测试结果: 封装的common.js // grid的输入对象,使用此对 阅读全文
posted @ 2020-04-17 21:02 AlphaJunS 阅读(750) 评论(1) 推荐(0) 编辑
摘要: 解决思路,先将字符串转化为毫秒值,计算差值,然后转化为天数 <script> window.onload = function() { var str1 = "2020-04-17"; var str2 = "2020-04-12"; var day1 = new Date(str1); var d 阅读全文
posted @ 2020-04-17 20:47 AlphaJunS 阅读(2703) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 27 下一页