JAVA基础
iAmZard
邮箱: sijunx@163.com
展开
-
java -jar 启动命令
启动命令:nohup java -Xms500m -Xmx500m -Xmn250m -Xss256k -server -XX:+HeapDumpOnOutOfMemoryError -jar /usr/local/mySpider/spider-search-papp-1.0.0-SNAPSHOT.jar --spring.profiles.active=daily -verbose:clas...原创 2019-11-03 21:04:55 · 392 阅读 · 0 评论 -
JDK8 LAMP表达式常用
List转为Map写法List list01 = new ArrayList()<>;Map<Long, User>list01.stream().collect(Collectors.toMap(User::getId, Function.identity(), (key1, key2) -> key2));List根据条件过滤筛选List userList...原创 2019-07-25 10:04:36 · 572 阅读 · 0 评论 -
JAVA常用语句
List转为MapMap<Long, MyDto> myDtoMap = new HashedMap(); if(!CollectionUtils.isEmpty(myDtoList)){ merchantDTOMap = myDtoList.stream().collect(Collectors.toMap(MerchantDTO::getOrderId, ...原创 2019-09-18 15:34:33 · 534 阅读 · 0 评论