05 2024 档案

摘要:需要guava和cglib: @NoArgsConstructor(access = AccessLevel.PRIVATE) public class BeanUtils { private static final Table<Class<?>, Class<?>, BeanCopier> CO 阅读全文
posted @ 2024-05-21 23:15 Jackie_JK 阅读(16) 评论(0) 推荐(0) 编辑
摘要:<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>3.6.0</version> <config 阅读全文
posted @ 2024-05-21 23:00 Jackie_JK 阅读(33) 评论(0) 推荐(0) 编辑
摘要:依赖: elasticsearch==7.17.9 eshelpercore.py: #!/usr/bin/python3 # coding=utf-8 import datetime import os import ssl from elasticsearch import Elasticsea 阅读全文
posted @ 2024-05-21 22:48 Jackie_JK 阅读(67) 评论(0) 推荐(0) 编辑
摘要:本方法参考自:golang 获取每年法定节假日 - 简书 (jianshu.com) 依赖: go 1.20 require ( github.com/Azure/go-autorest v14.2.0+incompatible // indirect github.com/Azure/go-aut 阅读全文
posted @ 2024-05-21 22:38 Jackie_JK 阅读(207) 评论(0) 推荐(0) 编辑
摘要:LocalDateTime dateToLocalDateTime(Date dateToConvert) { return dateToConvert.toInstant() .atZone(ZoneId.systemDefault()) .toLocalDateTime(); } long lo 阅读全文
posted @ 2024-05-21 22:15 Jackie_JK 阅读(50) 评论(0) 推荐(0) 编辑
摘要:基于版本: <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.3.14</version> </dependency> logback.xml: <?x 阅读全文
posted @ 2024-05-21 17:28 Jackie_JK 阅读(127) 评论(0) 推荐(0) 编辑
摘要:import os from fontTools.ttLib import TTFont import json def toUnicode(oneStr): t = oneStr if t[:3] == 'uni': t = t.replace('uni', '\\u') if t[:2] == 阅读全文
posted @ 2024-05-17 00:01 Jackie_JK 阅读(60) 评论(0) 推荐(0) 编辑
摘要:import random def generate_mac_address(): mac = [random.choice('0123456789ABCDEF') for _ in range(12)] p = 2 for i in range(5): mac.insert(p, '-') p + 阅读全文
posted @ 2024-05-16 23:58 Jackie_JK 阅读(43) 评论(0) 推荐(0) 编辑
摘要:@Getter @AllArgsConstructor public enum InsertQueueEnum { A(30000, 10, TimeUnit.SECONDS, 2, 1000), ; private final int capacity;//队列长度 private final i 阅读全文
posted @ 2024-05-16 23:47 Jackie_JK 阅读(6) 评论(0) 推荐(0) 编辑
摘要:依赖(如果非jdk8则可以使用更新的HikariCP和logback): <dependency> <groupId>com.zaxxer</groupId> <artifactId>HikariCP</artifactId> <version>4.0.3</version> <exclusions 阅读全文
posted @ 2024-05-16 23:43 Jackie_JK 阅读(96) 评论(0) 推荐(0) 编辑
摘要:该方法参考自一篇博客java判断是否是emoji字符(史上最全)_isemojicharacter-CSDN博客 经过简单封装如下: public class EmojiFilter { private EmojiFilter() { } /** * 过滤emoji 或者 其他非文字类型的字符 * 阅读全文
posted @ 2024-05-16 23:40 Jackie_JK 阅读(95) 评论(0) 推荐(0) 编辑
摘要:基于RestHighLevelClient7.17.7: @Slf4j @NoArgsConstructor(access = AccessLevel.PRIVATE) public final class ElasticsearchClientService { public static Res 阅读全文
posted @ 2024-05-16 00:50 Jackie_JK 阅读(186) 评论(0) 推荐(0) 编辑
摘要:docker run \ -d \ --name transmission \ --network=host \ -v /这里修改为自己的外挂硬盘目录:/data \ -e USERNAME=username \ -e PASSWORD=password \ --restart=always \ g 阅读全文
posted @ 2024-05-16 00:29 Jackie_JK 阅读(139) 评论(0) 推荐(0) 编辑
摘要:zabbix_server: docker run --name zabbix_server \ -e DB_SERVER_HOST="zabbix_pq" \ -e POSTGRES_USER="postgres" \ -e POSTGRES_PASSWORD="zxc0" \ --restart 阅读全文
posted @ 2024-05-16 00:28 Jackie_JK 阅读(31) 评论(0) 推荐(0) 编辑
摘要:本文基于springcloud2.0.0.RELEASE和eureka openfeign2.0.4.RELEASE版本: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-openf 阅读全文
posted @ 2024-05-15 00:34 Jackie_JK 阅读(34) 评论(0) 推荐(0) 编辑
摘要:@Slf4j public abstract class AbstractTemplateExport<Q extends QoI, D> implements ReportI { private static final String TEMPORARY_PATH = "tmp"; protect 阅读全文
posted @ 2024-05-15 00:21 Jackie_JK 阅读(11) 评论(0) 推荐(0) 编辑