2 Get started with Spring quickly

Write Spring programs module: spring-02-hellospring import jar package <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5 ...

Posted by Iceman512 on Mon, 02 May 2022 18:15:51 +0300

Configure Spring Batch batch failure retry mechanism

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

A simple request forwarding gateway can be used as a middle office gateway. Don't spray if you don't like it

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 ...

Posted by j115 on Mon, 02 May 2022 07:27:45 +0300

I didn't expect that Springboot can format the global date like this. It's a little fragrant!

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

Spring boot integrates Spring Security

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

Source code analysis series SpringBoot2.0 source code analysis, although the content is a bit much, but you will benefit a lot

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

Downtime caused by RestTemplate timeout configuration has been nagging managers for a year

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

Start Spring step by step

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

JAVA combat articles Simple application of the transaction manager that comes with Spring Programmatic transaction Declarative transaction, annotation declarative transaction, AspectJ annotation transaction

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

Implement SMS verification code function based on SpringBoot and Redis

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