Monitoring - Spring Boot + JVM + Druid + Prometheus + Grafana

1. Front Prometheus + Grafana are deployed in docker mode. If there is no docker, the following content will be very difficult The length is a little long, but there must be no problem following the steps. There will be a corresponding directory on the left or right, as well as at the beginning of the article The renderings are in 7, ...

Added by Warboss Alex on Sun, 02 Jan 2022 10:50:37 +0200

The underlying principle of SpringBoot automatic configuration (interview)

Automatic configuration principle A man of great worship What can a configuration file write? How do you write it? There are a lot of configurations in the official SpringBoot documentation, which we can't remember all Analyze the principle of automatic configuration We take * * Http encoding autoconfiguration) * * as an example to expla ...

Added by god_zun on Sun, 02 Jan 2022 10:39:34 +0200

springboot integrates Druid+mybatis

Druid Spring boot integrated Druid scheme: one is to directly configure Druid spring boot starter in POM without writing any code; One is to configure druid and write a few lines of code, which can be added; On the basis of scheme 1, add stat and wall to verify login. First present the github code address: https://github.com/yudiandemingzi/ ...

Added by Headwaters on Sun, 02 Jan 2022 06:14:59 +0200

SpringBoot default log configuration output level

Springboot default configuration Let's demonstrate it in the test class package com.staticzz.springboot_logging; import org.junit.Test; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringR ...

Added by mitchell on Sun, 02 Jan 2022 05:01:13 +0200

Dubbo 3.0.3 + Nacos 2.0.3 + Spring Boot 2.3.6. Problems encountered in release integration and use

Dubbo 3.0.3 + Nacos 2.0.3 + spring boot 2.3.6.RELEASE integration Because some of the company's old projects use rpc (a call toolkit encapsulated by HTTP client), considering the low performance, it is extremely difficult to maintain. Through comparison among many rpc frameworks, it is found that dubbo has launched version 3.0, and at pres ...

Added by martinacevedo on Sun, 02 Jan 2022 04:32:00 +0200

Redis project practice - lottery turntable

1. Project introduction This is a simple case based on Spring boot + Mybatis Plus + Redis. It mainly caches the activity content, prize information, record information, etc. into Redis, and then all lottery processes do data operations from Redis. The general content is very simple, and the specific operation is analyzed slowly below. 2. Pr ...

Added by gewthen on Sat, 01 Jan 2022 23:32:16 +0200

idea creates gradle parent-child project collection springBoot -- a detailed introduction to build gradle

catalogue preface Step 1: create parent project Step 2: create a sub module library Step 3: create a sub module - application Step 4: configure the build of parent-child project Gradle file 4.1. demo parent project build Configuration of gradle 4.2. library sub project build Configuration of gradle 4.3. Application subproject build Conf ...

Added by redesigner on Sat, 01 Jan 2022 21:07:46 +0200

Spring boot static resource access control and encapsulation integration scheme

background Recently, we started to optimize the company's framework and the practical application of the project. The original scheme was that the front and back ends of springboot+html were separately deployed, and the back-end personnel worked part-time on the front-end development, and the subsequent product line business was optimized. The ...

Added by jogisarge on Sat, 01 Jan 2022 19:01:45 +0200

Spring boot source code parsing EnvironmentPostProcessor

This article will focus on another extension point environment postprocessor provided by SpringBoot, which allows us to go to any specified directory, load a set of configurations in any way, and give any priority The configureEnvironment of the prepareEnvironment method has been concluded above. This article continues to look at the third l ...

Added by mauri_gato on Sat, 01 Jan 2022 06:12:47 +0200

Four methods of Spring Boot project authentication

Transferred from: Pillow BookLink: https://zhenbianshu.github.io/This paper introduces four ways to implement general auth in spring boot, including traditional AOP, interceptor, parameter parser and filter, and provides the corresponding example code. Finally, it briefly summarizes their execution order.prefaceRecently, I have been inundated b ...

Added by cparekh on Fri, 31 Dec 2021 04:52:17 +0200