How springboot integrates Prometheus how to expose Histogram to obtain monitoring indicators such as P99

background How springboot integrates Prometheus is not described in detail here. For an understanding of the integration process, refer to the blog: Spring Boot uses Micrometer integrated Prometheus to monitor Java application performance, Let me tell you a little bit about how long p99, p90 and other metrics we need to get for some monitoring ...

Posted by weedo on Sat, 23 May 2020 21:43:57 +0200

SpringCloud exception handling unified encapsulation for me to do-use

brief introduction Repeat function for me to write.There are global exception handling and return wrapping in the SpringBoot project, and the return front end is with fields such as succ, code, msg, data, and so on.Single project scenario is a good solution, when there are many micro-service modules, many cases of development are to copy the or ...

Posted by iijb on Sat, 23 May 2020 05:57:28 +0200

configmap of k8s ~ fluent sets es index prefix

For the component fluent D, you are responsible for grabbing logs. You can grab logs from the docker console or from the specified folder. For the log files stored in the folder, we need to configure the logback first, and then configure the configmap of fluent D, so as to grab the persistent logs and push them to the elastic storage medium Ins ...

Posted by Iokina on Wed, 20 May 2020 18:16:58 +0200

In depth analysis of Spring IOC loading BeanDefinition case details

  This paper mainly analyzes the loading of BeanDefinition in spring. We will focus on its analysis in the following articles.BeanDefinition belongs to the spring bean module. It's for the spring bean We know that there are many ways to define beans in spring, such as XML, annotations, and custom tags. There are also many types of colleagu ...

Posted by Dm7 on Tue, 19 May 2020 13:12:46 +0200

Let's use the mybatis framework to add, delete, modify and query mysql database in java

This article will use a simple login comment function to fully introduce the use of mybatis framework. Functions: add, delete, modify, query, multi table query, fuzzy query, dynamic query This article uses the environment / tools: Database: mysql 5.7 JDK:8 IDEA:2020.1 Database visualization tool: Navica ...

Posted by ponsho on Mon, 18 May 2020 08:11:13 +0200

PageHelper paging plug-in

<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.1.8</version> </dependency> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId ...

Posted by robwilson on Sun, 17 May 2020 17:35:48 +0200

Java series 012] all roads lead to Rome

Hello! Today is Saturday. Today we talk about the different methods of Singleton bean to get a new instance of prototype bean from Spring container. In the previous section, we learned about the scope of spring beans, and also learned that if the scope is not used correctly, it will cause data confusion. After we adjusted the scope of Transfer ...

Posted by tarlejh on Sun, 17 May 2020 12:25:09 +0200

The practice of Spring Cloud microservice architecture: consul registration center 02: the introduction case of consumer

Previous: Consul registration center 01: Spring Cloud microservice architecture practice You can click review. Next, let's talk about the introduction case of consumer. For the detailed video tutorial of spring cloud actual combat project, please leave a message.   1. Create project Let's create an aggregation project to explain Consul. First, ...

Posted by Zssz on Thu, 14 May 2020 17:10:39 +0200

Is it difficult to separate reading from writing?SpringBoot is implemented simply with aop

Preface It's been a month since I joined the new company, I've finished the work at hand, and the last few days I finally have time to research the code for my old project.During the process of researching the code, I found that Spring Aop was used in the project to separate the database from reading and writing, and to learn in my own way (I d ...

Posted by BraniffNET on Tue, 12 May 2020 18:48:39 +0200

Take a quick look at Swagger

1, Swagger 1. What is Swagger? Swagger is a standardized and complete framework for generating, describing, invoking, and visualizing Restful style Web services.Simple understanding: it is a REST API document generation tool, which can generate online interface documents and facilitate interface testing. 2. Why Swagger? When front-end and back- ...

Posted by mikesheridan5 on Mon, 11 May 2020 19:42:36 +0200