1. Introduction
By default, Spring batch jobs will fail with any errors during execution. However, sometimes, in order to improve the flexibility of applications, we need to deal with such intermittent faults.In this short article, we will discuss how to configure retry logic in Spring batch processing framework.
2. Simple examples
Suppose ther ...
Posted by gva482 on Mon, 02 May 2022 07:40:23 +0300
Project address: https://github.com/lcy19930619/api-center
Overall design idea:
The forwarding gateway needs to be divided into the following five parts
1. Client
On the gateway, all requests need to be forwarded to each real service, so the gateway is the client. Considering the forwarding performance of the client, we directly use weblux ...
Say in front
Recently, several colleagues in the Department have been wronged and left one after another. After three years of working together, they were reluctant to part with each other. After all the formalities were properly handled, they were sent out of the company after greeting. Several elder brothers smiled at me when they left. I imm ...
Posted by oops73 on Mon, 02 May 2022 04:57:44 +0300
Introduction to spring security
Spring Security is a powerful and highly customizable authentication and access control framework. It is the de facto standard for protecting spring based applications.
Spring Security is a framework that focuses on providing authentication and authorization for Java applications. Like all spring projects, the ...
Posted by Rose.S on Sun, 01 May 2022 12:00:28 +0300
Before learning the source code of spring boot 2.0, let's use spring initializr to quickly create a basic and simple example:
1. Start with the main function in the creation example:
package com.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* spring boot ...
Posted by paperthinT on Sun, 01 May 2022 11:09:29 +0300
Presumably, many data centers will integrate the data of many systems and then conduct unified planning and processing. The implementation of some business scenarios must rely on the third-party system. In a business scenario, when users are online, they need to request the third-party interface to obtain relevant information in real time, whic ...
Posted by aruns on Sun, 01 May 2022 07:51:35 +0300
1. Overview of Spring
1.1 What is Spring
Spring is a JavaEE lightweight one-stop development framework.
Lightweight: Start the framework with a minimum amount of code, then choose the module you want to use based on your needs.
Heavyweight: Earlier EJB s, all modules of EBJ need to be introduced to develop a HelloWorld program
One-stop: All ...
Posted by Corin on Sat, 30 Apr 2022 20:46:45 +0300
The transaction manager that comes with Spring
1. Programmatic transactions
For details, please refer to the official documentation: https://www.docs4dev.com/docs/zh/spring-framework/5.1.3.RELEASE/reference/data-access.html#transaction-programmatic Advantages: no need for spring to proxy, generate proxy objects (reflection), better performanc ...
Posted by irkevin on Sat, 30 Apr 2022 15:40:21 +0300
I heard that WeChat search for "Java Fish Aberdeen" will become stronger!
This article is included in JavaStarter , which contains my complete series of Java articles, you can read it for study or interview.
(I. Overview
When using various app s or logging in to websites every day, you will basically see the function of SMS veri ...
Posted by strudo on Sat, 30 Apr 2022 10:58:25 +0300