logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

spring.config.import nacos group

使用 spring.config.import 导入不同 group 中的文件。

文章图片
#spring#java#前端
elasticsearch reindex task 小笔记

# 使用 kibana 的案例数据来做演示。把索引 kibana_sample_data_logs 的数据复制到索引 kibana_sample_data_logs 中POST _reindex?requests_per_second=100&slices=3{"source": {"index": "kibana_sample_data_logs"},"dest": {"index":

#elasticsearch
elasticsearch 索引模板组件的创建

创建 mapping 模板 组件PUT _component_template/student_template_mapping_001{"template": {"mappings": {"properties": {"id": {"type": "long"},"name": {"type": "text","fields": {

#elasticsearch
elasticsearch pipeline

1 使用 pipeline 简单的添加一些数据例如,录入一个员工信息中,公司信息基本上固定的,可以做成固定的信息。创建一个公司信息的 pipeline=company_info_001查看 pipeline 信息GET _ingest/pipeline/company_info_001PUT _ingest/pipeline/company_info_001{"description": "区域字

#elasticsearch
elasticsearch-head 的安装

elasticsearch-head 的使用方式有两种https://github.com/mobz/elasticsearch-head#enable-cors-in-elasticsearch1 chrome 浏览器插件(扩展程序)运行2 单独的服务运行两种方式均可。看各自的使用。...

#elasticsearch
elasticsearch minimum_should_match

学习minimum_should_match 的小笔记。我的版本是 7.11 。通过案例,是最好的理解方式。创建索引添加数据PUT minimum_should_match_test_001{"mappings": {"properties": {"name":{"type": "text"},"desc":{"type": "text"...

#elasticsearch
elasticsearch 字段动态映射

最近在学习 elasticsearch ,学到字段的动态映射,在这里做点小笔记。希望像我这 样的初学者有作用。三种动态映射方式elasticsearch 的 mapping ,可以使用动态方式来创建字段的映射,减少手写的静态的 mapping 设置。就是在添加新数据的时候,动态的设置字段的mapping,就是动态地设置字段的类型和属性。就是使用一定的匹配机制,把匹配上的数据字段,设置这些字段的类型

#elasticsearch
elasticsearch 索引模板 + 别名控制

在创建索引模板的同时,可以加入别名的控制1 创建索引模板DELETE _index_template/student_template_001POST _index_template/student_template_001{"index_patterns": ["student-*"],"template": {"settings": {"number_of_shards": 3},"mappi

#elasticsearch
springboot 重新注册 bean

项目中,有时候会遇到这样的需求:更新配置后,需要重新处理相关的业务,但是不想重启应用。例如 elasticsearch 证书过期后,需要更换 http_ca.crt ,但是又不想重启应用。本人对 spring IOC 的源码不算深入,只知道可以实现,捣鼓了大半天,终于实现了,特意记录下过程。使用 @Bean 来创建注册业务逻辑 bean。当配置更新后,在监听事件里,创建新的业务逻辑 bean,处理

文章图片
#spring boot#jenkins#后端
vagrant virtualbox 复制

复制 vagrant + virtualbox 管理的虚拟机

文章图片
#vagrant#运维#centos
    共 17 条
  • 1
  • 2
  • 请选择