SpringBoot project specification notes. 2021
I'm afraid I lost the SpringBoot project specification sorted out a year ago. After all, I wrote it carefully at that time, and now it's posted on the blog.1. Application division specificationDuring the development of application system, the back-end service needs to consider dividing multiple SpringBoot modules according to the division princ ...
Added by mikesab on Thu, 03 Feb 2022 15:57:24 +0200
5 minutes to understand - Async, the asynchronous framework of SpringBoot
Asynchronous framework
Why use asynchronous framework? Solve what problem?
In the development of spring boot, it is generally called synchronously. However, there are often special businesses that need to be processed asynchronously. For example: register a new user, send 100 points, or place a successful order, send a push message, etc. ...
Added by cx323 on Thu, 03 Feb 2022 04:36:02 +0200
Scenario analysis of SpringBoot integrating Redisson to implement delay queue
Usage scenario
1. The order was placed successfully and was not paid for 30 minutes. Payment timeout, automatic cancellation of order
2. The order was signed, and no evaluation was conducted 7 days after signing. The order timeout is not evaluated, and the system defaults to high praise
3. The order was placed successfully, the merchant did ...
Added by shadow1200 on Thu, 03 Feb 2022 04:34:54 +0200
Rocketmq source code analysis - message retry and delay fault-tolerant logic in the Producer part
Problem point
1. What if the message fails to be sent (due to the network, the broker hangs up)? How does the sender achieve high availability? 2. How to select the message queue, that is, which message queue does the producer send messages to? 3. Why design a broker failure delay mechanism separately?
Producer message retry
When the produce ...
Added by dmcdivitt on Thu, 03 Feb 2022 03:28:38 +0200
springboot Computer Shop Project 3. User Login
When a user enters a username and password to submit data to the background database for query, if there is a corresponding username and password, the login is successful. After successful login, the user jumps to the homepage index of the system. HTML page. Jump is done on the front end using jquery
1. Logon-Persistence Layer
1.1 Planning sql ...
Added by ant peacocke on Wed, 02 Feb 2022 20:43:33 +0200
SpringBoot+Minio builds a distributed file server that is no longer bald
Introduction: Hello, I'm brother Feng, ๐ IT migrant workers on the front-line Internet ๐ Senior interviewer ๐น Founder of Java flea classroom. He has many years of front-line R & D experience and has worked in iFLYTEK, meituan, Ping An and other companies. There is a sideline team formed by its own small partners in Shanghai. At present, ...
Added by Sgt.Angel on Wed, 02 Feb 2022 20:43:20 +0200
[RabbitMQ] release and confirm how the advanced part has achieved the effect with Springboot
catalogue
What does the advanced part include?
Release confirmation of springboot version
Confirmation mechanism scheme
Code architecture diagram
Modify profile
Add configuration class
Message producer
Callback interface
Message consumer
result
Fallback message
Configuration yml file
Callback interface optimization
result
Backup ...
Added by nando on Wed, 02 Feb 2022 18:28:21 +0200
Analyzing the principle of Spring's @ Configuration annotation attribute proxyBeanMethods
preface
There is an annotation @ Configuration in the Spring framework that appears frequently. If you still feel unfamiliar, we can go to the Spring boot autoconfigure package of SpringBoot. You can find that each Configuration class must have an @ Configuration annotation, in which there is an attribute proxyBeanMethods. What is its function ...
Added by blckspder on Wed, 02 Feb 2022 17:56:20 +0200
A new understanding of Spring PostConstruct annotation
In both Spring and SpringBoot development, the PostConstruct annotation is frequently used. It is usually used for some actions completed by Bean initialization.
In the project code, the configuration will be read from the configuration center, and then initialized to the specified Bean. For other places that need to obtain the configuration d ...
Added by KoopaTroopa on Wed, 02 Feb 2022 14:52:46 +0200
springboot Computer Shop Project 5. Upload user profile
5. Upload your Avatar
1. Upload Avatar - persistence layer
1.1 sql statement planning
update t_user set avatar = ?,modified_user = ? ,modified_time = ? where uid = ?
1.2 Design interfaces and abstract methods
UserMapper interface to define an abstract method for modifying user avatars
/**
*
* @param uid
* @param avatar
* @param modifiedUse ...
Added by dbo on Tue, 01 Feb 2022 19:55:08 +0200