摘要: 修改配置文件nginx.conf server { listen 443 ssl; server_name excalidraw.haimaotv.com; ssl_certificate /opt/nginx-1.24.0/excalidraw.haimaotv.com_bundle.crt; s 阅读全文
posted @ 2024-01-23 17:16 Johnson_wang 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 服务端定义好的dubbo接口,确定已经在zookeeper上了,消费端需要连接对应的zookeeper. 首先引入maven <dependency> <groupId>org.apache.dubbo</groupId> <artifactId>dubbo</artifactId> <versio 阅读全文
posted @ 2023-06-02 10:33 Johnson_wang 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 原因:key 没有进行序列化,需要加入redis的配置进行序列化 /** * @Author johnson * @Date 2023/6/2 */ @Configuration public class RedisConfig { @Bean public RedisTemplate<String 阅读全文
posted @ 2023-06-02 10:15 Johnson_wang 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 使用reindex 命令进行拆分,具体流程如下: //1.查询原表,拿到表结构 GET big_data/_search //3.调整刷新策略 PUT sm_data_1/_settings {"refresh_interval": "1s"} //5.同步数据 POST _reindex?wait 阅读全文
posted @ 2023-03-14 14:32 Johnson_wang 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 今天在生产使用kibana查询了一条聚合语句,因为数据量比较大(40亿+),导致fielddata cache飙升,影响了写入,根据官方文档,进行如下操作: 执行命令,查询filedata cache使用比较大的索引: GET /_cat/indices?v&h=index,fielddata.me 阅读全文
posted @ 2022-10-18 15:37 Johnson_wang 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 主要在于构建HTML模板,新建类似模板: <table border='0' th:each='data:${datas}' cellspacing='1' cellpadding='0' style='background:#DCDFE6; line-height: 30px;width: 900 阅读全文
posted @ 2022-09-15 18:32 Johnson_wang 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 在用logstash收集mysql数据到elasticsearch中时,运行一段时间后就出错: [2022-08-08T18:03:19,143][INFO ][logstash.outputs.elasticsearch] retrying failed action with response 阅读全文
posted @ 2022-08-08 18:18 Johnson_wang 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1.application.properties文件不起作 原因:因为重构项目,启动的子工程是重新建立的项目。 解决:打开Project Structure 配置,选择启动子工程,加入Spring, 如下: 2.错误异常 springfox.documentation.common.ClassPre 阅读全文
posted @ 2022-04-30 04:08 Johnson_wang 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 1.背景 为了防止数据库的用户数据安全,所以需要对用户数据进行加密,具体为插入数据进行加密,查询数据自动解密。 2.方案 查询相关文档后,发现mybatis有2种方案可以处理: a.使用typeHandler b.使用intercept 经过对批量数据执行后,发现千、万、百万级别数据拦截器相对更快一 阅读全文
posted @ 2022-01-07 14:10 Johnson_wang 阅读(1528) 评论(1) 推荐(2) 编辑
摘要: 阻塞队列,应用自启,定时刷新 阅读全文
posted @ 2021-01-04 13:43 Johnson_wang 阅读(271) 评论(1) 推荐(0) 编辑