1, Publish message to redis
1. Create a new springboot project
Create a new redis queue for the springboot project.
2. Introduce dependency
The introduction of related dependencies, in which lombok is used, requires the installation of lombok plug-ins.
<?xml version="1.0" encoding="UTF-8"?>
Posted by sixdollarshirt on Thu, 18 Jun 2020 12:28:50 +0200
From https://www.jianshu.com/p/9ee887e045dd , thank you
1 Finite-state machine
1.1 definition of state machine
FSM (finite state machine, FSM), also known as FSM, is a mathematical model that represents finite states, their transitions and actions.
Finite state machine embodies two points: first ...
Posted by echoindia756 on Thu, 18 Jun 2020 05:48:33 +0200
About the problem of password encryption, brother song has talked with you before. For reference:
Two ways of password encryption in Spring Boot!
In this article, song introduced two kinds of encryption schemes, but both of them are used independently! Can multiple password encryption schemes exist in the same project at the same time? The an ...
Posted by FlipinMonkeyPie on Thu, 18 Jun 2020 04:58:42 +0200
Official website: http://dubbo.apache.org/zh-cn/
On February 15, 2018, dubbo, Alibaba's service governance framework, successfully became an Apache foundation incubation project.
Apache Dubbo is a high-performance and lightweight open source Java RPC framework, which provides th ...
Posted by bitt3n on Wed, 17 Jun 2020 04:52:16 +0200
The main configuration class of SpringBoot
public class StartEurekaApplication
public static void main(String args)
Click @SpringBootApplication to see that @SpringBootApplication is a comp ...
Posted by sqlnoob on Tue, 16 Jun 2020 10:43:45 +0200
Interpretation of spring boot project architecture
SpringBoot startup process
Spring application running
Here we use IDE to create projects. When the scaffold is completed, I'm going to get anoth ...
Posted by Dilbert137 on Tue, 16 Jun 2020 09:28:26 +0200
Because an interface is too slow... Try to optimize (/ baldness)
Spring data used- mongo:2.1.3
mongo driver: 3.8.2
You can see me First query sentence.
Original page query
Due to the large amount of data, the query was slow, and it was later found that there was no need to use aggregation at all. With aggregate que ...
Posted by kat_jumper_33 on Tue, 16 Jun 2020 07:39:31 +0200
Spring Boot Application events and listeners
Find application.yml Read operation of.
from spring.factories View in
# Application Listeners
ConfigFileApplicationListener this object pair application.yml Read operation
Posted by literom on Tue, 16 Jun 2020 05:41:14 +0200
2.2 Deep Principle
The traditional Spring framework implements a WEB service, which needs to import various dependent JAR packages, then write corresponding XML configuration files, etc. Compared with Spring Boot, it is more convenient, fast and efficient.So how does Spring Boot really do that?
2.2.1 Dependency Management
Question: Why doesn't ...
Posted by joshi_v on Mon, 15 Jun 2020 21:30:25 +0200
2.2.3 Custom starter
Spring Boot is made up of many Starters (a series of starter plug-ins that are automatically configured), and it is also because of starter that Spring Boot is popular.
starter is a very important part of Spring Boot and can be understood as a pluggable plug-in because it allows developers who use a feature to ignore the p ...