上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 21 下一页
摘要: 1. 数据字典 字典表预留是否有效字段,应对后期字典变更的需求 2. 对接外部系统 对接外部系统时,要记录外部系统返回的原始数据(最好用数据库表记录,log日志也记录一份),便于后期排查问题 3. 巧用字典开关 1. 对于不同的业务分支通过开关控制 2. 上线的大功能,可能会出现问题,设计回退功能时 阅读全文
posted @ 2019-03-21 11:13 亲爱的阿道君 阅读(138) 评论(0) 推荐(0)
摘要: -- 增加字段 alter table table1 add column age int(3) DEFAULT NULL COMMENT '年龄'; -- 修改字段 ALTER TABLE table1 MODIFY COLUMN name varchar(200) DEFAULT NULL CO 阅读全文
posted @ 2019-03-21 10:19 亲爱的阿道君 阅读(122) 评论(0) 推荐(0)
摘要: Redis: 理解为防弹衣 mysql :理解为身体 过程: 先从Redis查询数据, 存在返回, 不存在再查询数据库 原因 解决方案 缓存雪崩 缓存集中失效,造成数据库压力过大 不同分类的Key设置不同的过期时间,避免集中失效 热点Key 缓存时间长一些 冷门Key 缓存时间短一些 缓存击穿 查询 阅读全文
posted @ 2019-03-15 17:38 亲爱的阿道君 阅读(225) 评论(0) 推荐(0)
摘要: "☑AAA ☐BBBB" 阅读全文
posted @ 2019-03-13 13:59 亲爱的阿道君 阅读(144) 评论(0) 推荐(0)
摘要: // 去除空格 public static Object objectTrim(Object obj) { Class ownerClass = obj.getClass(); Method[] methodArray = obj.getClass().getDeclaredMethods(); try { for(int... 阅读全文
posted @ 2019-03-08 14:41 亲爱的阿道君 阅读(188) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/fox_bert/article/details/101431115 https://blog.csdn.net/qq_38455201/article/details/80308771 https://blog.csdn.net/whoamiyang/a 阅读全文
posted @ 2019-03-06 17:47 亲爱的阿道君 阅读(91) 评论(0) 推荐(0)
摘要: package com.cango.erp.cdc.util; import org.apache.tools.zip.ZipEntry; import org.apache.tools.zip.ZipFile; import org.apache.tools.zip.ZipOutputStream; import java.io.*; import java.util.Enumerati... 阅读全文
posted @ 2019-03-01 15:12 亲爱的阿道君 阅读(217) 评论(0) 推荐(0)
摘要: 重启服务 阅读全文
posted @ 2019-02-28 17:31 亲爱的阿道君 阅读(352) 评论(0) 推荐(0)
摘要: public static void groupList(List list) { int batchNum = 20; for (int i = 0; i list.size()) { //最后没有20条数据则剩余几条newList中就装几条 batchNum = list.size() - i; ... 阅读全文
posted @ 2019-02-28 09:50 亲爱的阿道君 阅读(266) 评论(0) 推荐(0)
摘要: import com.jcraft.jsch.*; import org.apache.commons.io.IOUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.*; import java.util.Properties; import java.util.Vector; publ... 阅读全文
posted @ 2019-02-12 15:03 亲爱的阿道君 阅读(208) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 21 下一页