摘要: dom4j解析xml 阅读全文
posted @ 2018-06-28 15:45 魔杰Lee 阅读(106) 评论(0) 推荐(0)
摘要: 首先,知道一种区别: 编译时可操作类型信息; 运行时识别类型信息{1-RTTI;2-反射机制}; RTTI:在运行时,识别对象的类型。 1-运行时类型识别的必要性: 多态中,向上转型,动态绑定的场景,方法和方法体在运行时才关联起来。 接口类引用=具体对象; 接口类引用.function();运行时识 阅读全文
posted @ 2018-06-25 23:35 魔杰Lee 阅读(137) 评论(0) 推荐(0)
摘要: 一,不可变/只读性 String对象是不可变的,每次对String对象的修改都会创建一个新的String对象并返回其引用。 这种设计也有其合理性: 对于一个方法而言,参数是为该方法提供信息的,而不是让方法来改变自己的。(倘若就是希望改变该参数,那就用旧的引用来接受新的对象)。 二,与StringBu 阅读全文
posted @ 2018-06-23 17:41 魔杰Lee 阅读(133) 评论(0) 推荐(0)
摘要: 新增其他类型永久素材 感谢博主: https://blog.csdn.net/yh88356656/article/details/50685599 https://www.cnblogs.com/jeffen/p/6937788.html 接口调用请求说明 通过POST表单来调用接口,表单id为m 阅读全文
posted @ 2018-06-01 17:00 魔杰Lee 阅读(1401) 评论(0) 推荐(0)
摘要: 方法:mongoTemplate.getDb().getCollection(tableName).bulkWrite(requests); public BulkWriteResult bulkWrite(List<WriteModel<Document>> requests,String tab 阅读全文
posted @ 2018-05-29 20:58 魔杰Lee 阅读(5091) 评论(0) 推荐(0)
摘要: 修改bootstrap modal模态框的宽度 修改的不是modal这个大div 而是modal-dialog这个会话div <div class="modal fade" > <div class="modal-dialog " style="width:400px;"> <div class=" 阅读全文
posted @ 2018-04-24 09:41 魔杰Lee 阅读(4673) 评论(0) 推荐(1)
摘要: /** * 函数名: getMonthNum * 功能: 相差月数 * 参数: @param start 开始时间 * 参数: @param end 结束时间 * 返回值: int */ public static int getMonthNum(Date start,Date end) { Cal 阅读全文
posted @ 2018-04-12 17:13 魔杰Lee 阅读(460) 评论(0) 推荐(0)
摘要: 公众号网页授权后获取用户基本信息出现access_token非法提示网页授权的 AccessToken 和获取用户信息的 AccessToken 不是一个东西。 用户同意授权,获取codecode换取网页授权access_tokenhttps://api.weixin.qq.com/sns/oaut 阅读全文
posted @ 2018-01-31 16:56 魔杰Lee 阅读(176) 评论(0) 推荐(0)
摘要: //隐藏数字的方法 function hiddenText(id,name){ name_x=name.toString(); var length = name_x.length; if (length > 4) name_x = name_x.substring(0,4)+ '...'; var 阅读全文
posted @ 2018-01-31 16:43 魔杰Lee 阅读(172) 评论(0) 推荐(0)
摘要: //百分数,小数点后2位 public static String getPersentData(Integer m,Integer n){ m=m*100; double num = new BigDecimal((float)m/n).setScale(2, BigDecimal.ROUND_H 阅读全文
posted @ 2018-01-31 16:12 魔杰Lee 阅读(174) 评论(0) 推荐(0)