本系列文章旨在演示如何通过 Elasticsearch 官方的 Java 客户端连接,操作 Elasticsearch 服务,目标是让相关的Java开发人员快速上手,所以本文不会涉及 Elasticsearch 的相关理论。
在 Mac OS 中安装 Elasticsearch 7.5.2
Posted on | Edited on | In microservice , Elasticsearch
Symbols count in article: 5.9k | Reading time ≈ 10 mins.
Elasticsearch 是一个基于 Lucene 构建的开源全文搜索引擎,同时也是一个分布式文档数据库。本文演示如何在 Mac OS中安装用于开发用的 Elasticsearch。
处理 struct field xxx has json tag but is not exported 的错误
在 go 语言中,通过 encoding/json 库可以很方便的处理 json 格式的数据,有时候会遇到 “struct field xxx has json tag but is not exported” 的错误。
在 MacOS 中设置Go语言与VSCode的开发环境配置
本文主要说明如何在 MacOS 环境中安装和配置Go语言开发环境,关于在 Windows 和 Linux 中的方法,可以参考 Go语言快速入门手册(一) - 开发环境配置 中的描述。
K3s课堂实验手册(二) - 为集群加入新工作节点
Posted on | Edited on | In microservice , Kubernetes
Symbols count in article: 2.4k | Reading time ≈ 4 mins.
在本系列的上一篇文章中, 我们实践了如何搭建K3s集群的及Master服务器,现在,我们要为集群加入一个新的工作节点。
K3s课堂实验手册(一) - 搭建K3s集群主节点
Posted on | Edited on | In microservice , Kubernetes
Symbols count in article: 5.2k | Reading time ≈ 9 mins.
本实验手册旨在帮助学员完成K3s微服务系统的搭建和使用,以帮助学员在实践中深入理解微服务的概念。
Spring Boot 中常用注解说明系列 - EnableSpringApplication
注解是开发Spring Boot 应用首先会遇到的一个注解,该注解其实相当于 @Configuration, @EnableAutoConfiguration 和 @ComponentScan 三者的集合,可以说一种简化的写法。
在RestController中日期类型的输入和输出
在使用 RestController 处理用户的输入、输出数据时,常常需要处理日期、时间类型的数据。
从源码编译 zipkin-server
Posted on | Edited on | In microservice , SpringCloud
Symbols count in article: 874 | Reading time ≈ 1 mins.
Zipkin 是在微服务环境中常用的调用链跟踪服务。 其本身也是一个使用 Spring Boot 构建的应用,因为是开放源码的,所以我们可以获取源代码,并通过源代码来定制、构建该服务。
处理 Some files do not have the expected license header 的问题
在通过maven构建一些开源项目时,偶尔会遇到: “Some files do not have the expected license header”。