Analysis of Commodity Module Database Table

SpringBoot e-commerce project mall (20k+star) address: https://github.com/macrozheng/mall abstract This paper mainly analyses the tables of three functions: commodity classification, brand management and commodity types, and adopts the form of comparison between functions and table structure. Table parsing can only annotate some fields that ne ...

Posted by benkillin on Sun, 15 Sep 2019 08:14:24 -0700

Kubernetes Operations and Maintenance Using Prometheus Overall Monitoring K8S

Catalog: Prometheus architecture K8S Monitoring Indicators and Realization Ideas Deployment of Prometheus on K8S Platform Configuration Analysis Based on K8S Service Discovery Deployment of Grafana on K8S Platform Monitoring Pod, Node, Resource Objects in K8S Cluster Visualization of Prometheus monitoring data using Grafana Warning Rul ...

Posted by jason257 on Sun, 15 Sep 2019 07:20:29 -0700

TypeFilter magic of Springboot source analysis

Summary: In normal development, I don't know if you've ever thought about it. Why do we use spring's native annotations when we customize annotations (in this case, like @Component, @Service.......)), or just make a comment and use your own facet programming to implement some business logic?This article focuses on sharing how to inject IOC out ...

Posted by limitedreality on Thu, 12 Sep 2019 21:40:37 -0700

Read configuration files using Go

brief introduction Read the configuration using viper Creating command-line tools using Cobra Thermal overload summary The current part of the code brief introduction In the last practice, a basic restful api server was launched. There were many hard-coded attributes in the code at that time, so this time we would try to read them from the co ...

Posted by Sealr0x on Thu, 12 Sep 2019 04:06:25 -0700

Recommendation of Several Common Pressure Measuring Tools

ab ab is a pressure testing tool provided by apache, which is very convenient to use. install If Apache is installed, then ab is installed. If you don't want to install apache, you can install ab in the following way # ubuntu sudo apt-get install apache2-utils # centos yum -y install httpd-tools Pressure measurement Before press ...

Posted by tiggy on Thu, 12 Sep 2019 02:27:12 -0700

How can I get rid of if-else parameter checking?

background In development, it is often necessary to write some field validation code, such as non-empty, length limitations, mailbox format validation, etc., which results in code full of if-else, which is not only quite lengthy, but also crazy. hibernate validator(Official Documents ) provides a set of relatively complete and convenient veri ...

Posted by jim_de_bo on Wed, 11 Sep 2019 09:43:13 -0700

Solve the single sign-on (SSO) problem after Spring Boot upgraded from 1.x to 2.x

Solve the single sign-on (SSO) problem after Spring Boot upgraded from 1.x to 2.x When learning Spring Cloud, when encountering the related content of authorized service oauth, he always knows half of it, so he decided to study and collate the content, principle and design of Spring Security, Spring Security Oauth2 and other permissions, authe ...

Posted by Mesden on Wed, 11 Sep 2019 01:46:46 -0700

Message Queue Source Code Interpretation of NSQ Landing Disk

The original address of this article https://blog.lpflpf.cn/passages/nsqd-study-2/ NSQ message queue implements message landing using FIFO queue.The implementation is diskqueue, using the package github.com/nsqio/go-diskqueue. This paper mainly introduces the implementation of diskqueue.The code in this article comes from github.com/nsqio/go-di ...

Posted by bukuru on Tue, 10 Sep 2019 20:38:40 -0700

Implement a simple version of vuex persistence tool

background Recently, when developing applet projects with uni-app, some content that needs to be persisted can't be called like state in other vuex, so think about implementing something like vuex-persistedstate plug-in yourself. It doesn't seem like a lot of code Preliminary ideas The first thought is naturally the watcher mode of vue.Hijack c ...

Posted by remal on Tue, 10 Sep 2019 09:10:47 -0700

[Kubernetes Series] Part 3 Kubernetes Cluster Installation and Deployment

This article describes how to deploy a highly available k8s cluster through Kubespray. The k8s version is 1.12.5. 1. Deployment Manual Code Warehouse: https://github.com/kubernetes-sigs/kubespray Reference documents: https://kubespray.io/#/ 2. k8s master machine configuration 3. Installation steps of k8s cluster Step 1: Set up Secret-Free Log ...

Posted by novice_php on Tue, 10 Sep 2019 04:34:35 -0700