摘要: public class HttpUtil { public static String getIpAddr(HttpServletRequest request) { String ip = request.getHeader("x-forwarded-for"); if (ip == null 阅读全文
posted @ 2019-07-10 16:52 zzl0916 阅读(120) 评论(0) 推荐(0) 编辑
摘要: public enum InputTypeEnum{ /** * 表单字段输入框类型枚举 */ TEXT("文本", new String[]{""}, true), PASSWORD("密码", new String[]{""}, true), DATE("日期", new String[]{"" 阅读全文
posted @ 2019-07-07 09:14 zzl0916 阅读(292) 评论(0) 推荐(0) 编辑
摘要: /** * 会议信息语言枚举类型 */public enum LanguageEnum{ /** * 中文会议信息 */ CHINESE("中文会议", "chinese"), /** * 英文会议信息 */ ENGLISH("English Meeting", "english"); privat 阅读全文
posted @ 2019-07-07 09:13 zzl0916 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 岁月神偷 (Demo) - 金玟岐 能够握紧的就别放了 能够拥抱的就别拉扯 时间着急的 冲刷着 剩下了什么 原谅走过的那些曲折 原来留下的都是真的 纵然似梦啊 半醒着 笑着哭着都快活 谁让 时间是让人猝不及防的东西 晴时有风阴有时雨 争不过朝夕 又念着往昔 偷走了青丝却留住一个你 岁月是一场有去无回 阅读全文
posted @ 2019-07-06 21:53 zzl0916 阅读(890) 评论(0) 推荐(0) 编辑
摘要: public static String[] stringInArrays(String fields) { String[] field = null; if (fields != null && fields.length() > 0) { field = fields.split(","); 阅读全文
posted @ 2019-07-06 15:34 zzl0916 阅读(11089) 评论(0) 推荐(0) 编辑
摘要: public static String findAllInClassFieldsName(Class l) { String[] fieldStr = null; if (l != null) { Field[] fields = l.getDeclaredFields(); fieldStr = 阅读全文
posted @ 2019-07-06 14:45 zzl0916 阅读(279) 评论(0) 推荐(0) 编辑
摘要: public static String[] findAllInClassFieldsName(Class l) { String[] fieldStr = null; if (l != null) { Field[] fields = l.getDeclaredFields(); fieldStr 阅读全文
posted @ 2019-07-06 14:36 zzl0916 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 递归查询树tree结构有两种做法: 第一种,递归查询数据库结构, 第二种,一次性将数据库表中的所有数据查出来,然后再递归查出来的list集合, 第一种做法适合数据量较少的tree结构,因为要一直查询数据库数据量大时速度回相对较慢,所以数据量大时建议使用第二种方法 陕西 延安 洛川 西安 阅读全文
posted @ 2019-07-06 10:57 zzl0916 阅读(257) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { Map m = new HashMap(); for (int i = 0; i < 7; i++) { Map map = new HashMap(); map.put(i, i); m.put(i, map); } 阅读全文
posted @ 2019-07-06 08:31 zzl0916 阅读(666) 评论(0) 推荐(0) 编辑
摘要: zzl0916 zzl09161 阅读全文
posted @ 2019-06-29 18:10 zzl0916 阅读(128) 评论(0) 推荐(0) 编辑