SpringBoot04: JSR303 data verification and multi environment switching
JSR303 data verification
Let's see how to use it first
In Springboot, @ validated can be used to verify the data. If the data is abnormal, exceptions will be thrown uniformly to facilitate the unified processing of the exception center. Let's write a comment here so that our name can only support Email format;
@Component //Register bean
@Con ...
Posted by iacataca on Wed, 09 Mar 2022 12:20:15 +0100
Operation and maintenance: RocketMQ Operator, a powerful tool for RocketMQ operation and maintenance control in the cloud native Era
Introduction: RocketMQ Operator: a powerful tool for RocketMQ operation and maintenance control in the cloud native era:
Introduction: RocketMQ Operator has joined OperatorHub and officially entered the Operator community. Starting from practice and combining with cases, this paper will illustrate how to quickly build a RocketMQ cluster on Kub ...
Posted by mikes127 on Tue, 08 Mar 2022 03:20:56 +0100
K8s oriented design errors
K8s design mode
Kubernetes is a container choreography tool with universal significance. It provides a set of basic dependencies for building distributed systems based on containers. Its significance is equivalent to the position of Linux in the operating system, which can be considered as a distributed operating system.
Custom resources
K8s ...
Posted by pedroteixeira07 on Mon, 07 Mar 2022 22:14:03 +0100
Enhancing Kubernetes network security with Cilium
TL;DR
In this article, we use Kubernetes' native network strategy and Cilium's network strategy to realize the isolation of Pod network level. The difference is that the former only provides the network strategy based on L3/4; The latter supports L3/4 and L7 network policies.
Improving network security through network strategy can greatly r ...
Posted by AQHost on Wed, 16 Feb 2022 11:50:17 +0100
YoloV5 actual combat: teach object detection by hand
Abstract: YOLOv5 is not a single model, but a model family, including YOLOv5s, YOLOv5m, YOLO
This article is shared from Huawei cloud community< YoloV5 actual combat: teach object detection by hand -- YoloV5 >, author: AI Hao.
abstract
Strictly speaking, yoov5 is not the fifth version of YOLO, because it has not been recognized by ...
Posted by Scarum on Tue, 15 Feb 2022 10:49:55 +0100
gorilla/mux framework (RK boot): add Prometheus monitoring Middleware
introduce
Through a complete example, based on gorilla/mux Prometheus monitoring middleware is added to the micro service of the framework.
What is Prometheus monitoring interceptor / Middleware?
The monitoring interceptor will record Prometheus Metrics for each API request.
We will use rk-boot To start gorilla/mux Microservices.
P ...
Posted by infini on Wed, 09 Feb 2022 10:23:11 +0100
GoFrame framework: log configuration management
introduce
Through a complete example, in gogf/gf Manage logs reasonably in the framework.
What are the usage scenarios?
Log auto scroll
Split into multiple log files
Log format modification
wait
We will use rk-boot To start gogf/gf Microservices of the framework.
Please visit the following address for a complete tut ...
Posted by jazz_snob on Thu, 20 Jan 2022 22:35:11 +0100
GoFrame framework: quickly create static file download Web service
introduce
This article describes how to rk-boot Quickly build a static file download Web service.
What is the static file download Web UI?
Quickly build Web services that can download files through configuration files.
Please visit the following address for a complete tutorial:
https://rkdocs.netlify.app/cn
install
go get g ...
Posted by Dagwing on Wed, 19 Jan 2022 18:28:08 +0100
Take you ten days to easily complete the Go micro service series
preface
We will show you a go zero micro service example in detail through a series of articles. The whole series is divided into ten articles, and the directory structure is as follows:
Environment construction
Service splitting
User services (this article)
Product service
Order service
Payment services
RPC service Auth authen ...
Posted by lordphate on Wed, 19 Jan 2022 11:29:56 +0100
YAML Basics
From rookie tutorial, original address: https://www.runoob.com/w3cnote/yaml-intro.html
It is especially suitable for expressing or editing data structures, various configuration files, dump debugging contents and file outline
The configuration file suffix of YAML is YML, such as runoob yml
Basic grammar
Case sensitive (Boolean values ...
Posted by rachel2004 on Sun, 09 Jan 2022 05:59:34 +0100