摘要: java8中时间的各种转换(LocalDateTime) 1.将LocalDateTime转为自定义的时间格式的字符串 public static String getDateTimeAsString(LocalDateTime localDateTime, String format) { Dat 阅读全文
posted @ 2023-02-07 08:44 黄橙 阅读(1288) 评论(0) 推荐(0)
摘要: /** * request转字符串 * @param request * @param charset 编码格式 (UTF-8) * @return * @see [类、类#方法、类#成员] */ public static String parseRequst(HttpServletRequest 阅读全文
posted @ 2023-02-07 08:44 黄橙 阅读(23) 评论(0) 推荐(0)
摘要: List<Map<String, Object>> 去出重复 public static void main(String[] args) { String [] array= {"name","age"}; List<Map<String, Object>> oldList = getTestDa 阅读全文
posted @ 2023-02-07 08:43 黄橙 阅读(274) 评论(0) 推荐(0)
摘要: 1.集合中获取指定的一个属性值 List<String> items = li.stream().map(ScdCostChargeItemEntity::getItem).collect(Collectors.toList()); 2.集合分组 Map<String, List<T>> yearD 阅读全文
posted @ 2023-02-07 08:42 黄橙 阅读(371) 评论(0) 推荐(0)
摘要: public class MenuTree1 { /** * 构建结束的树 */ private static List<Menu> menuList ; /** * 构建树 * @param menuId 树的根节点id 0:代表顶级节点 * @param nodeList 要构建的数据 * @r 阅读全文
posted @ 2023-02-07 08:41 黄橙 阅读(37) 评论(0) 推荐(0)
摘要: 1.数据操作Dao /** * RedisManager 操作类 * 使用SpringDataRedis进行整合 * * @author yy * @since 1.0.0, 2019年08月20日 */ @Component public class RedisManager { @Resourc 阅读全文
posted @ 2023-02-07 08:40 黄橙 阅读(73) 评论(0) 推荐(0)