数组,List,Set互转
1.数组转化为List:String[] strArray= new String[]{"Tom", "Bob", "Jane"};List strList= Arrays.asList(str...
1.数组转化为List:String[] strArray= new String[]{"Tom", "Bob", "Jane"};List strList= Arrays.asList(str...
使用java8新特性stream进行List去重 List newList = list.stream().distinct().collect(Collectors.toList()); Sy...
/** * String字符串转成List<Long>数据格式 * String str = "1,2,3,4,5,6" -> List<Long...
mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
第一种方法File file = ResourceUtils.getFile("classpath:template.docx");//获取文件的相对路径 可在控制台打印查看输出结果Stri...