RabbitMq Guide: completely solve the problem of message reliability and implement delay queue
introduction
You must be familiar with RabbitMq. We often use it for asynchronous communication between services, such as SMS, log, e-mail sending and other business scenarios. However, in the process of using RabbitMq, we will encounter the problem of message loss and the need to delay consuming messages. I believe you will find the answer yo ...
Posted by sameveritt on Fri, 07 Jan 2022 11:05:44 +0100
[JAVA] Spring Boot project development on exception class handling
1. Preface
Exceptions refer to abnormal phenomena that occur during the running of a program, such as user input errors, division by zero, non-existent files to be processed, array subscripts crossing bounds, and so on.
2. Classification of Exceptions
There are many exception classes defined in the JDK that correspond to a variety of possibl ...
Posted by hrichman on Thu, 06 Jan 2022 19:32:01 +0100
Let's talk about how to integrate spring MVC and sentinel through custom annotations
prefaceI wrote an article before Talk about the pit you stepped on due to the improper use of alibaba sentinel . In fact, there are some pitfalls because sentinel is based on mvc interceptors during mvc project statistics. This method will make it difficult to obtain parameters, such as hotspot parameter rules. Therefore, the @ SentinelResourc ...
Posted by Prellyan on Thu, 06 Jan 2022 04:49:18 +0100
SpringBoot simply integrates WebSocket
WebSocket overview
websocket protocol is an application layer protocol based on TCP/IP, which is used to realize full duplex communication between server and client.
The difference between WebSocket and http
The http protocol we usually use is that the client requests the server's data, and then the server responds to the client after recei ...
Posted by UnknownPlayer on Wed, 05 Jan 2022 22:46:15 +0100
SpringBoot2.3. Integrate Mockito to realize unit test
1. General
Mockito is an excellent and powerful framework for Java unit testing. When you need to call a third-party interface and the development test environment cannot call this interface directly, you can use mockito to simulate interface calls to write perfect unit tests, which also makes it strongly decoupled from third-party application ...
Posted by AudiS2 on Wed, 05 Jan 2022 17:10:39 +0100
Still curd? Encapsulate your own spring boot starter
Reading harvest
👍🏻 Learn to customize spring boot starter👍🏻 Understand the principle of SpringBoot auto configuration
Download the source code of this chapter
❤️Development starter❤️Test starter
What is Starter
Starter is a very important concept in Spring Boot. Starter is equivalent to a module. It can integrate the dependencies require ...
Posted by nimbus on Wed, 05 Jan 2022 15:44:52 +0100
Use Jasypt to encrypt the application s of the SpringBoot project
Use Jasypt to encrypt the application s of the SpringBoot project
This article focuses on why to encrypt sensitive information in SpringBoot's application, how to use jasypt spring boot project to encrypt application * and suggestions on encryption strategies. Record some experience of application encryption.
What's in the application
To ...
Posted by frist44 on Wed, 05 Jan 2022 13:19:34 +0100
Swagger knowledge summary
1, About Swagger
In short, Swagger is a tool to help background developers dynamically generate interface documents in front and back-end separated projects, so that background developers do not have to write interface documents, which greatly saves the time of background developers.
2, Swagger quick start
Swagger is generally integrated ...
Posted by willc on Wed, 05 Jan 2022 10:55:42 +0100
Using EasyExcel's complete springboot +vue front and rear ends to export and download excel tables
Write in front
It's only for record. It's a great honor to help a little partner who is still lost. In the past two or three days, I have done a good job in exporting and downloading excel tables using easyexcel. I also feel a lot. In the humanitarian spirit of planting trees by predecessors and enjoying the cool by future generations, I q ...
Posted by AdB on Wed, 05 Jan 2022 05:58:41 +0100
It's easy to realize data visualization without writing code. This artifact based on SpringBoot is amazing!
Before, some readers asked me if I have any useful BI (Business Intelligence) tools? BI tool is simply a data visualization tool. Today, I recommend an open-source data visualization tool DataEase, which is implemented based on SpringBoot and integrated with Apache Doris + Kettle. It can support second level query of large amount of data. I hop ...
Posted by phynias on Wed, 05 Jan 2022 05:24:36 +0100