摘要:
一问题 需求是异步给 IM 发送link消息,所以有一张消息表,每次查询发送失败的数据,并对这些行数据加锁,(避免别的线程再次查询出来发送消息) select * from message where id > ?1 AND message_status = ?2 and send_times < 阅读全文
摘要:
一 常用方案:SimpleDateFormat public class TimeUtils { public static String formatDate(Date date) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd 阅读全文