2019年9月26日

excel 表格内容读取

摘要: /*excel上传*/public void readExcel(String filePath, SysUser sysUser) throws Exception { filePath=file_path+filePath; InputStream is = new FileInputStrea 阅读全文

posted @ 2019-09-26 16:35 superficial。 阅读(223) 评论(0) 推荐(0) 编辑

2019年8月24日

redis 小例

摘要: /** * 获取所有 **/@RequestMapping(value = "/getAll")public void getall() { Object list =redisClient.getData("sysDictionaries"); if(null ==list){ list = th 阅读全文

posted @ 2019-08-24 10:22 superficial。 阅读(138) 评论(0) 推荐(0) 编辑

2019年6月28日

多文件打包下载

摘要: /** * 下载 * @param response * info 文件夹名 * filenames 文件名们 */ @RequestMapping(value = "/imgdownload", method = RequestMethod.GET) public void imgDownload(GeneratorPojo... 阅读全文

posted @ 2019-06-28 11:34 superficial。 阅读(662) 评论(0) 推荐(0) 编辑

2019年3月27日

随笔

摘要: <select id="getSignInRecordList" resultType="HashMap" parameterType="com.lf.platform.core.Example"> select IFNULL(sir.down_time,'未签退') as down_time,IF 阅读全文

posted @ 2019-03-27 13:37 superficial。 阅读(113) 评论(0) 推荐(0) 编辑

2019年2月15日

js数组删除元素

摘要: Array.prototype.remove = function(val) { var index = this.indexOf(val); if (index > -1) { this.splice(index, 1); } return this;}; groupRoomId.remove($ 阅读全文

posted @ 2019-02-15 17:18 superficial。 阅读(131) 评论(0) 推荐(0) 编辑

2018年7月30日

layui 监听多次提交

摘要: 通过layer弹窗初始化form,form由模板动态生成,提交时,每多弹一次就多一次监听提交。比如: 第一次弹出layer,监听到1次submit;第二次弹出layer,监听到2次submit;第N次弹出layer,监听到N次submit。form.on('submit(userForm)', fu 阅读全文

posted @ 2018-07-30 13:43 superficial。 阅读(452) 评论(0) 推荐(0) 编辑

2018年6月25日

springboot 过滤器

摘要: package com.nachuang.zhixiao.union.util;import com.nachuang.zhixiao.model.HuiYuan;import org.springframework.core.annotation.Order;import javax.servle 阅读全文

posted @ 2018-06-25 16:02 superficial。 阅读(141) 评论(0) 推荐(0) 编辑

2018年5月1日

layui 单选框选中事件

摘要: <div class="layui-form-item" pane=""> <label class="layui-form-label">节点</label> <div class="layui-input-block"> <input type="radio" name="sex" value= 阅读全文

posted @ 2018-05-01 22:15 superficial。 阅读(11325) 评论(0) 推荐(0) 编辑

2018年4月20日

spring +mybatis 多数据源

摘要: 先建两个util类 在controller中直接 datasourcetwo 与datasourceone 是在properties中配的数据源 阅读全文

posted @ 2018-04-20 16:51 superficial。 阅读(180) 评论(0) 推荐(0) 编辑

springboot 多数据源

摘要: 如上是定义了两个数据源 然后在main方法所在类加上此注解 阅读全文

posted @ 2018-04-20 16:45 superficial。 阅读(502) 评论(0) 推荐(0) 编辑

导航