摘要: 常量 contants 采用接口(Interface)中变量默认为static final的特性 public interface Constants { String LOGIN_KEY = "OTA:VEHICLE:LOGIN"; } public final static String OTA 阅读全文
posted @ 2023-04-12 14:14 爱生活(^_-) 阅读(20) 评论(0) 推荐(0)
摘要: 项目启动 -Dspring.profiles.active=dev 日志 log.error("[滴滴取消订单]-leecancelDidiOrder-订单编号:{},异常信息:{}", orderNo, Throwables.getStackTraceAsString(e)); <dependen 阅读全文
posted @ 2023-04-12 14:09 爱生活(^_-) 阅读(26) 评论(0) 推荐(0)
摘要: Map entrySet遍历,在键和值都需要时使用(最常用) Map<Integer, Integer> map = new HashMap<Integer, Integer>(); map.put(1, 2); for (Map.Entry<Integer, Integer> entry : ma 阅读全文
posted @ 2023-04-12 14:06 爱生活(^_-) 阅读(39) 评论(0) 推荐(0)
摘要: import cn.hutool.core.date.DateUtil; /** * DatePattern * DatePattern.NORM_DATE_PATTERN = "yyyy-MM-dd"; * * DatePattern.NORM_DATETIME_PATTERN = "yyyy-M 阅读全文
posted @ 2023-04-12 09:46 爱生活(^_-) 阅读(33) 评论(0) 推荐(0)