Feign study notes
Feign declarative remote call
1. Introduction
Feign is a declarative HTTP client. Its purpose is to make remote calls easier. Feign provides the template of HTTP request. By writing a simple interface and inserting annotations, you can define the parameters, format, address and other information of HTTP request. Feign integrates Ribbon (l ...
Posted by Spaceboy on Tue, 28 Dec 2021 06:54:03 +0100
Spring boot implements current limiting
preface
when developing high concurrency systems, there are three sharp tools to protect the system: caching, degradation and current limiting. Current limiting can be considered as a kind of service degradation. Current limiting protects the system by limiting the requested traffic. generally speaking, the throughput of ...
Posted by mridang_agarwal on Tue, 28 Dec 2021 01:53:15 +0100
Day 7 of SpringBoot self-study - thymeleaf + interceptor writes web page login function
Previous chapter
Day 6 of SpringBoot self-study - anyone who dies and climbs the template home's member paid boutique website template
preface
Some problems in the video were barely solved, but the progress was only six videos. The @ Slf4j annotation in lombok is quite useful. It is recommended to use it. Raytheon's web page (the ...
Posted by mars16 on Mon, 27 Dec 2021 21:43:24 +0100
Springboot integrates the Disruptor as the internal message queue
1, Basic introduction
1. What is a Disruptor?
(1) Disruptor is a high-performance concurrency framework developed by UK foreign exchange trading company LMAX. It can be considered as an efficient and low latency memory message component for inter thread communication. Its biggest feature is high performance. Unlike Kafka and RabbitMQ, which a ...
Posted by DocUK on Mon, 27 Dec 2021 16:15:40 +0100
Blasting column - springboot2 X series of tutorials using InitBinder to handle the binding of request parameters
preface
When we develop the project, we need close cooperation between the front and rear ends to ensure the stability and efficiency of the project. The front end passes the request parameters to the back end through the URL interface, and the back end returns the corresponding response information according to these different request paramet ...
Posted by boombanguk on Mon, 27 Dec 2021 04:55:30 +0100
Rules engine Drools learning details
1. Overview of rule engine
1.1 what is a rule engine
The full name of rule engine is business rule management system, and its English name is BRMS (Business Rule Management System). The main idea of rule engine is to separate the business decision-making part of the application, and write business decisions (business rules) using predefined s ...
Posted by JPnyc on Sun, 26 Dec 2021 21:35:18 +0100
Spring family related notes
1, @ Component, @ repository, @ Service, @ Controller
(1) @ Component put the ordinary java class creation object into the Spring container
Equivalent to < bean id = "" class = "" > in xml configuration file</ bean> For example:
public class Cat {
private String name;
private Integer age;
public ...
Posted by angelena on Sun, 26 Dec 2021 19:04:57 +0100
What if Spring and Mybatis use different data sources?
One of the issues to be discussed in this article is how to set up different database data sources for Spring and Mybatis?
be careful. Under normal circumstances, you must set the same database data source for Spring and Mybatis
Case code location https://github.com/infuq/spring-framework/tree/main/infuq-t/src/main/java/com/infuq/mybatis
Cas ...
Posted by crusty76 on Sun, 26 Dec 2021 09:55:11 +0100
Global exception handling and unified response object of springboot
1, springboot exception handling
1. The default exception handling mechanism of springboot
By default, SpringBoot provides two different ways to respond
One is that when the browser client requests a nonexistent page or server exception, SpringBoot will respond to an html by default The other is to return json information by default when ...
Posted by stuartshields on Sat, 25 Dec 2021 23:08:28 +0100
How to ensure the reliability of message transmission in RabbitMQ?
How to ensure that messages are not lost
1. Message loss caused by network abnormality
Do a good job in fault tolerance (try - catch) of the method. Sending messages may fail due to network reasons. After the failure, it will be recorded in the database.Keep a log, and the status of each message sent should be recorded.-- Message record table ...
Posted by Nathaniel on Sat, 25 Dec 2021 19:45:53 +0100