摘要: 1. 配置变更 Previous nameChangeNew name (if applicable) dbms.active_database Renamed dbms.default_database dbms.connectors.default_listen_address Renamed 阅读全文
posted @ 2022-11-28 15:28 衰草寒烟 阅读(861) 评论(0) 推荐(0) 编辑
摘要: 官方地址 首先选择主键原因 Selecting the Primary Key​ The number of columns in the primary key is not explicitly limited. Depending on the data structure, you can 阅读全文
posted @ 2022-10-19 17:19 衰草寒烟 阅读(1324) 评论(0) 推荐(0) 编辑
摘要: 普通http工具类httpClient 访问https图片会报以下错误 javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present 阅读全文
posted @ 2022-10-13 14:55 衰草寒烟 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1. 国家企业信用信息公示系统(类似于某查查) 网址: https://www.gsxt.gov.cn/index.html 2. 国家合同示范文本库(国家市场监督管理总局) 网址: https://cont.12315.cn 3. 标准地图服务系统 网址: bzdt.ch.mnr.gov.cn 阅读全文
posted @ 2022-10-13 14:38 衰草寒烟 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1. Vert.x 介绍 Vert.x是Eclipse软件基金会顶级JAVA开源项目之一,它基于netty的、运行在jvm之上的、支持多种编程语言的高性能异步、非阻塞、响应式开发工具包。 Vert.x is a tool-kit and not a framework that ships with 阅读全文
posted @ 2022-03-18 16:53 衰草寒烟 阅读(2687) 评论(0) 推荐(0) 编辑
摘要: 1. RedisTemplate 默认配置下底层实现 使用jedis(spring-boot 1.x)或者lettuce(spring-boot 2.x)操作redis的 spring-boot 1.5.7 spring-data-redis 1.8.7 配置文件 # redis spring.re 阅读全文
posted @ 2022-02-09 17:17 衰草寒烟 阅读(1476) 评论(0) 推荐(0) 编辑
摘要: 首先看以下代码 public class Oddity { private static int[] o = new SplittableRandom().ints().limit(1000000).parallel().filter(i->(1&i)==1).toArray(); public s 阅读全文
posted @ 2021-12-24 15:05 衰草寒烟 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 经常使用的 java.util.Random 类,是PRNG,采用线性同余算法产生的,也称为伪随机分布。会发生不够随机的情况,比如以下例子: public static void main(String[] args) { for (int i = 0; i < 4096; i++) { int r 阅读全文
posted @ 2021-12-24 14:53 衰草寒烟 阅读(562) 评论(0) 推荐(0) 编辑
摘要: docker安装elasticsearch 版本选择 6.8.11 下载es镜像 docker pull elasticsearch:6.8.11 启动容器 docker run -d --name es6.8.11 -p 9200:9200 -p 9300:9300 -e "discovery.t 阅读全文
posted @ 2021-11-10 16:08 衰草寒烟 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 1. 如果配置mock测试为真,返回mock数据,为假,返回真实数据 2. 实现方式 可以每次在方法中判断,但是很麻烦,好多if判断 可以定义接口,多一个mock实现,在程序启动的时候,只加载mock实现类,真实实现类不加载(可以自定义类加载器或者使用spring bean加载过滤) 也可以使用AO 阅读全文
posted @ 2021-11-03 16:20 衰草寒烟 阅读(765) 评论(0) 推荐(1) 编辑