Loading

随笔分类 -  JAVA

摘要:正序 list.sort(Comparator.comparing(VO::getSort)); 倒序 list.sort(Comparator.comparing(VO::getSort).reversed()); 阅读全文
posted @ 2021-12-08 13:47 路闻man 阅读(241) 评论(0) 推荐(0)
摘要://单个对象复制,使用org.springframework.beans.BeanUtils BeanUtils.copyProperties(oldVO, newVO); //list List<NewListVO> newList = JSON.parseArray(JSON.toJSONStr 阅读全文
posted @ 2021-11-22 16:31 路闻man 阅读(174) 评论(0) 推荐(0)
摘要:import org.springframework.data.redis.core.StringRedisTemplate; @Autowired private StringRedisTemplate stringRedisTemplate; public static final String 阅读全文
posted @ 2021-11-03 17:24 路闻man 阅读(226) 评论(0) 推荐(0)
摘要:private static final String PACKAGE_CODE_KEY = "key:no:"; private static final Integer defaultExpireTime = 1; @Override public String generateNo(Strin 阅读全文
posted @ 2021-03-30 16:10 路闻man 阅读(602) 评论(0) 推荐(0)
摘要:1.Service接口 public interface ExcelExportService { ResponseEntity<byte[]> exportExcel() throws IOException; } 2.Service接口实现类 package com.test.service.t 阅读全文
posted @ 2021-03-05 11:24 路闻man 阅读(479) 评论(0) 推荐(0)