- 博客(16)
- 资源 (3)
- 收藏
- 关注
原创 递归
private List<Ztree> getChild(List<Ztree> ztrees,Long rootId){ List<Ztree> child = new ArrayList<>(); for (Ztree ztree:ztrees) { if(rootId.equals(ztree.getpId()...
2020-02-14 12:27:39 97
原创 lambda 根据实体类的拼音排序
Collections.sort(chinas,((o1, o2) -> Collator.getInstance(Locale.CHINESE).compare(o1.getName(),o2.getName())));
2019-10-22 17:20:50 318
原创 微信支付
//微信支付依赖<dependency> <groupId>com.github.wxpay</groupId> <artifactId>wxpay-sdk</artifactId> <version>0.0.3</version></dependency>pac...
2019-10-10 18:57:03 161
原创 tomcat 8.5 配置阿里云https
/**web.xml*/在</login-config> 下面插入代码 作用是将 http 转为https<security-constraint> <!-- Authorization setting for SSL --> <web-resource-collection > <web...
2019-09-24 19:56:54 354
转载 linux 服务器文件虚拟路径配置
package com.ruoyi.web.core.config;import java.io.File;import org.springframework.beans.factory.annotation.Value;import org.springframework.context.annotation.Configuration;import org.springfram...
2019-05-09 19:05:27 1136
转载 table表格转Excel 表格
package com.feima.xxhglcaseservice.service;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.util.ArrayList;import java.util.List;import com.feim...
2019-01-29 10:07:54 444
原创 js动态设置下拉框的选中的值
$("#orgType option[value='"+ jsonObject.data.orgType+"']").attr("selected",true);
2019-01-12 15:26:28 5930
翻译 地图添加定位坐标
function initMap(data){ //data 是所有数据 var oldjwd=[114.783514,38.042292]; var gaodeMap = new AMap.Map('container', { resizeEnable: true, //是否监控地图容器尺寸变化 zoom:11, //初始化地图层级 ...
2019-01-02 09:06:03 906
原创 高德地图 点击取坐标经纬度
<style> .layui-form-select dl { max-height:200px; } html, body, #container { //container 为地图的容器 height: 100%; width: 100%; } .amap-icon img, .amap-marker-c...
2018-12-24 18:05:01 1965
原创 layui 模板引擎 例子
//数据模板<script type="text/html" id="editMenuPl"> <table id="wdy-table" class="layui-table"> <tr> <th>功能名称</th>
2018-09-19 17:48:27 3026
原创 前端转树结构
//设置树配置var settingTree={ data:{ simpleData:{ enable: true, idKey: "id", pIdKey: "pId", rootPId: 0 } }, callback: { ...
2018-09-19 17:43:54 442
转载 json树数据
package com.feima.xxhglbaseservice.service;import com.alibaba.fastjson.JSONArray;import com.alibaba.fastjson.JSONObject;import com.feima.entity.base.TFunction;import com.feima.entity.base.TFunct...
2018-09-15 14:18:57 438
原创 视频上传
@RequestMapping("/flvUpload") @ResponseBody public ModelMap flvUpload(@RequestParam("video") MultipartFile video) throws IllegalStateException, IOException{ ModelMap map = new ModelMa...
2018-09-05 11:02:04 226
原创 spring mvc 文件上传 前台jsp图片传不到后台的原因
前台jsp<form action="${pageContext.request.contextPath}/file/upload" method="post" > <input type="file" name="file"/> <button type="submit">上传</butto
2018-09-03 14:08:35 948
原创 ie 不兼容增强for循环问题
for(var j in array1){ } 增强for循环 ie 兼容模式识别不了 改为普通for循环for(int j= 0 ; j<array1.length;j++){}...
2018-08-20 08:59:57 1846 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人