Spring Boot: detailed explanation of microservice application monitoring Spring Boot Actuator
introduction Under the current microservice architecture, many services will be deployed on different machines and interact with each other through service invocation. A complete business process will be processed and transmitted by many microservices. Therefore, how to know the health status of each service is particularly important.
Fortunate ...
Posted by izlik on Mon, 03 Jan 2022 17:48:08 +0100
Actual combat: how to integrate JWT in SpringBoot to realize login registration
JWT can be understood as an encrypted string, which consists of three parts: header, payload and signature
It is used by the header and payload encrypted by base64 The JWT string is formed by connecting the strings, then encrypting them with salt secret combination through the encryption method declared in the header, and then forming the JWT ...
Posted by msaz87 on Mon, 03 Jan 2022 15:28:45 +0100
Spring Boot realizes read-write separation. No one else can't?
Step 1: configure multiple data sources
I won't introduce the basics of Spring Boot. I recommend this practical tutorial: github.com/javastacks/...
First, we configure two data sources in SpringBoot. The second data source is ro datasource:
spring:
datasource:
jdbc-url: jdbc:mysql://localhost/test
username: rw
password: rw_ ...
Posted by mustang on Mon, 03 Jan 2022 15:06:15 +0100
Analysis and configuration of pointcut expression expression in Spring AOP
Pointcut refers to those methods that need to be executed "AOP", which is described by "Pointcut Expression" Pointcut can be defined in the following ways or through & & | and! Combine in different ways
Common methods of expression
Method parameter matching
args()
@args()
Method description matc ...
Posted by Hotkey on Mon, 03 Jan 2022 13:22:39 +0100
Three ways to implement login interception in Springboot
1. Login authentication
1.1 INTRODUCTION
In the current front-end and back-end projects, without using the framework, after successful login, the production Token will be sent to the front end, and each request will be carried to the background through a cookie or request header. Before executing the business code, the background will fir ...
Posted by roseplant on Mon, 03 Jan 2022 12:31:17 +0100
Alibaba P8 explained in person: SpringBoot - form verification - unified exception handling - Custom verification information source
1. Introduction
We all know that the verification of the front desk is only to meet the friendliness of the interface, customer experience and so on. However, it is far from enough to rely on the front end for data legitimacy verification. Because illegal users may directly obtain the request address from the client for illegal requests, backg ...
Posted by vMan on Mon, 03 Jan 2022 08:22:21 +0100
Startup principle of SpringBoot
To start a SpringBoot project, we only need to execute Java - jar XXX The jar command is OK. At this time, we start a web server container, which can access the corresponding interface through the interface address on the browser, but the whole startup process is transparent to us, so it is necessary to understand.
Start front
java -jar comma ...
Posted by Shibby on Mon, 03 Jan 2022 07:52:05 +0100
SpringBoot2.x Series tutorial 08 springboot integration filter and interceptor
First of all, filters and interceptors are two different things conceptually. Filters depend on Servlet containers and are part of Servlet specifications, while interceptors exist independently and can be used in any case; In addition, filters and interceptors have the following differences.
1. The trigger timing of the filter is different fro ...
Posted by nutshell on Mon, 03 Jan 2022 07:24:24 +0100
Deploying vue projects using pm2+express
Deploy front-end projects on Contos using pm2 + express
Using pm2+express to deploy the springboot+vue project on Centos7
The project is a front-end and back-end separated project. The back-end uses the springboot front-end for two Vue projects
As shown in the figure:
api is the back-end interface. cms and view share the same api interf ...
Posted by BlaineSch on Mon, 03 Jan 2022 06:22:45 +0100
Directory structure and name specification of SpringBoot project
Write in front
This blog post introduces the directory structure and naming specification based on SpringBoot development. It can solve the problem for you. How to plan the directory structure in the actual project? How to name the directory more standardized? What does each directory mean? Three questions.
Catalog description
servicex ...
Posted by joeami on Mon, 03 Jan 2022 06:15:38 +0100