11 2019 档案
摘要:1、List<对象>根据对象的某个属性,提取重复 List<String> listDetail = list.stream(). collect(Collectors.groupingBy(item -> item.getIdCard(), Collectors.counting())) .ent
阅读全文
摘要:通过set的方式去重 针对String[]数组中第二各元素的去重 通过LinkedHashSet方式去重 对象中的某个元素去重,并提取该元素组成新的List
阅读全文
摘要:1.pom依赖 2.MultipartSupportConfig配置类 3.后端接口改造 关键字consumes = MULTIPART_FORM_DATA_VALUE 4.FeignClient接口改造 引入配置类MultipartSupportConfig,和接口注解consumes = MUL
阅读全文
摘要:pom依赖 1.工具类方法,检测上传目录,若不存在则创建 private void judgeDirExists(String uoloadPath) { try { File targetPatchFile = new File(uploadPath); if (!targetPatchFile.
阅读全文