tqt-java

2022年11月14日

多线程处理一个大的list

摘要: 1.集合切分工具类 public class SplitListUtils { /** * 拆分集合 * * @param <T> 泛型对象 * @param resList 需要拆分的集合 * @param subListLength 每个子集合的元素个数 * @return 返回拆分后的各个集合 阅读全文

posted @ 2022-11-14 15:18 TQT* 阅读(163) 评论(0) 推荐(0) 编辑

2022年11月8日

java去除Emoji表情

摘要: 方式一: 自己创建工具类 public class EmojiFilterUtil { private static boolean isEmojiCharacter(char codePoint) { return (codePoint == 0x0) || (codePoint == 0x9) 阅读全文

posted @ 2022-11-08 14:09 TQT* 阅读(788) 评论(0) 推荐(0) 编辑

2022年7月19日

word转PNG;pdf转PNG,及多张PNG合并

摘要: 1.word转化为PNG 使用到 aspose.words <!-- https://mvnrepository.com/artifact/com.aspose/aspose-words --> <dependency> <groupId>com.aspose</groupId> <artifact 阅读全文

posted @ 2022-07-19 14:18 TQT* 阅读(326) 评论(0) 推荐(0) 编辑

2022年7月5日

High-level-client 获取指定的字段

摘要: String[] includeFields = new String[] {"id","url"}; SearchSourceBuilder ssb = SearchSourceBuilder.searchSource().query(boolQueryBuilder).size(baseSB.g 阅读全文

posted @ 2022-07-05 09:21 TQT* 阅读(60) 评论(0) 推荐(0) 编辑

2022年6月8日

ES查询时size过大报错entity content is too long [105539255] for the configured buffer limit [104857600]

摘要: RequestOptions.Builder builder = RequestOptions.DEFAULT.toBuilder(); builder.setHttpAsyncResponseConsumerFactory( new HttpAsyncResponseConsumerFactory 阅读全文

posted @ 2022-06-08 13:41 TQT* 阅读(2615) 评论(0) 推荐(0) 编辑

2022年4月8日

ElasticSearch多源配置

摘要: 直接上代码 yml文件配置信息 elasticsearch: works: #单篇稿件的ES库配置信息 node1: http://***.**.***.***:9201 #localhost:9200 node2: http://***.**.***.***:9202 node3: http:// 阅读全文

posted @ 2022-04-08 17:12 TQT* 阅读(160) 评论(0) 推荐(0) 编辑

2022年3月25日

Nginx代理配置说明(正向/反向代理)

摘要: Nginx的代理配置(六) 一、正向代理 1. 指令说明 (1) resolver 这个用于设置DNS服务器的ip 。DNS服务器的主要工作是进行域名解析,将域名映射为对应IP地址。 语法:resolver address ... [valid = time ] address DNS 服务器的ip 阅读全文

posted @ 2022-03-25 10:08 TQT* 阅读(4800) 评论(0) 推荐(0) 编辑

2022年3月24日

若依框架的分页插件满足不了需求时,进行自定义分页

摘要: //创建工具类,public class PaginationUtil { public static <T> TableDataInfo getPageInfo(List<T> list,Integer currentPage,Integer pageSize) { int total = lis 阅读全文

posted @ 2022-03-24 15:06 TQT* 阅读(813) 评论(0) 推荐(0) 编辑

导航