雪洗中关村

导航

2020年6月15日 #

Mybatis基础知识点:trim标签的使用

摘要: 链接:https://mp.weixin.qq.com/s/ElnfzawxFOz-X71uU_pehg mybatis的trim标签一般用于去除sql语句中多余的and关键字,逗号,或者给sql语句前拼接 “where“、“set“以及“values(“ 等前缀,或者添加“)“等后缀,可用于选择性 阅读全文

posted @ 2020-06-15 18:45 雪洗中关村 阅读(320) 评论(0) 推荐(0) 编辑

java8 array、list操作 汇【20】)- (FlatMap)用法汇总

摘要: public class FlatMapTest { public static void main(String[] args) throws IOException { FlatMapTest test = new FlatMapTest(); // test.test1(); // test. 阅读全文

posted @ 2020-06-15 16:04 雪洗中关村 阅读(1260) 评论(0) 推荐(0) 编辑

编写一个定制的收集器

摘要: //编写一个定制的收集器 List<String> names = Arrays.asList("shekhar", "rahul", "shekhar"); Multiset<String> set = names.stream().collect(new MultisetCollector<>( 阅读全文

posted @ 2020-06-15 15:57 雪洗中关村 阅读(203) 评论(0) 推荐(0) 编辑