加载中
MYSQL 重复使用已被删除的主键Id,查询不连续的主键id

select id from (select id from enterprise where id >#{start} order by id asc) t where not exists (select 1 from enterprise where id=t.id-1) limit 1 否则自增会越来越大,又不能使用...

2021/09/29 16:40
284
SOLR 公共查询笔记

package com.qianlima.solr.qy.service.indexer.impl; import lombok.extern.slf4j.Slf4j; import org.apache.solr.client.solrj.SolrClient; import org.apache.solr.client.solrj.SolrQuer...

2021/09/29 15:34
34
KafkaConfig

package com.qianlima.solr.qy.configuration ; import org.apache.kafka.clients.consumer.ConsumerConfig ; import org.apache.kafka.common.serialization.StringDeserializer ; import o...

2021/02/01 11:22
488
Linux命令日志记录

AWK文本编辑软件 which awk // 查看awk路径 yum install gawk // 安装awk which awk// 再次执行 显示awk路径 last -n 5 //举例显示最近5条登陆信息 last -n 5 | awk '{print$1}' //打印前五条...

ES7.5版本 kibana 操作语法

DELETE business_info PUT business_info/ { "settings": { "analysis": { "analyzer": { "notice_analyzer":{ "char_filter":["html_strip"], "tokenizer":"ik......

2021/01/29 09:10
888
Kibana 操作ES 基本语法

查询总数 GET business_info/_count { "query": { "match_all": {} } } 分组聚合查询打标签 GET notice_info_new/_search { "query": { "terms": { "content": ......

2020/09/15 11:35
2.7K
java中ES操作语法分组

public List searchGroupChenQ(List tids, List keywords) { String key = "tid"; String[] strings = new String[keywords.size()]; keywords.toArray......

2020/09/07 15:42
859
Java 8: Converting Map<Long, List<Long>> to Map<Long, Long[]> [duplicate]

Map>> testMap = foos.stream().collect(Collectors.groupingBy(e -> e.getAreaName(), Collectors.groupingBy(e -> e.getObjectName(), Collectors.collectingA......

2020/08/05 15:22
1K
连续7天打卡记录

/** * 查询用户任务列表分享跑步 * * @param userId * @param businessId * @return */ public DynamicRuleDO selectUserTask(Long userId, Integer businessId) { ......

2019/05/28 14:40
9
java8 集合嵌套性能流处理快的一笔

BigDecimal rate = nod.getValue();//普通用户比例 BigDecimal rated = d.getValue();// done比例 int index = 0; int count = total%10000==0?total / 10000 :total/10000+ 1; ......

2019/04/14 02:35
87
java jar 启动脚本linux

#!/bin/sh RESOURCE_NAME=sport.jar tpid=`ps -ef|grep $RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'` if [ ${tpid} ]; then echo 'Stop Process...' kill -15 $tpid fi slee...

2019/02/22 10:54
54
建造者模式构建消息模板,动态参数

建造者模式,模板方法少模板,实现。 发送消息通知 // 发送消息通知 public void sendAppealNotice(Long userId, NotifyTypeEnum template, Long orderNo, BigDecimal usdtNum) { Date date...

2018/12/05 18:36
40
异步推送新闻,可扩展Three****Push

定时任务 // 每30分钟 @Scheduled(cron = "0 0/30 * * * ?") public void pushNewsInfo() { log.info("开始执行自动推送:begin"); List list = pushNewsService......

2018/12/05 18:14
92
Mybatis 注解式编写SQL

返回Map必须声明 下:否则返回结果为null @Results

2018/12/05 15:12
33

没有更多内容

加载失败,请刷新页面

返回顶部
顶部