Spring Boot implements the whole process of user registration and verification

0. After reading this article, you will learn How to implement a basic registration verification processHow to customize an annotation 1. General In this article, we will use Spring Boot to implement a basic mailbox account registration and verification process. Our goal is to add a complete registration process that allows users to register ...

Added by fothers on Mon, 10 Jan 2022 14:15:59 +0200

Spring Bean creation process

● study the spring bean creation process through annotation. The entry is the AnnotationConfigApplicationContext class. ApplicationContext applicationContext = new AnnotationConfigApplicationContext(MyConfig.class); ● look at the three steps performed in this construction method: ○ call this() method: ■ instantiate the ioc container DefaultLis ...

Added by munuindra on Mon, 10 Jan 2022 07:33:00 +0200

spring source code refresh Part 2

Hello, I'm a classmate of programmer TianThe previous article gave an overall interpretation of the spring core startup method refresh, but only in general. Next, a systematic article will be published to deeply interpret the source code of each method.For the first article, see Method overview of spring source code First, the first method is t ...

Added by monkeymade on Mon, 10 Jan 2022 05:53:03 +0200

[Java Zero to Architect Season 3] [17] Spring-AOP

Continuous Learning & Continuous Updating... Break away 1. Deficiencies of BeanPostProcessor+JDK (CGLib) Proxy objects generated using JDK/CGLib will, by default, proxy all beans (that is, beans managed by the Ioc container) that get the Object through getBean, and all methods of the target Object (that is, beans), which will cert ...

Added by khefner on Sun, 09 Jan 2022 19:47:54 +0200

Organize how objects are created in Spring

When Spring is not used, developers generally create objects using new/reflection; Spring simplifies the development process by providing an implementation of an IoC container to help developers manage dependencies between objects in an injection-dependent manner, thereby transferring ownership of the objects created by developers to the IoC co ...

Added by soak on Sun, 09 Jan 2022 19:09:13 +0200

Spring transaction invalidation

1. Not managed by Spring As shown in the following example: // @Service public class OrderServiceImpl implements OrderService { @Transactional public void updateOrder(Order order) { // update order; } } If the @ Service annotation is commented out at this time, this class will not be loaded into a Bean, and this class ...

Added by Aeglos on Sun, 09 Jan 2022 16:17:58 +0200

Spring boot integrates JDBC notes

Introduction to spring data For the data access layer, whether SQL (relational database) or NoSQL (non relational database), the bottom layer of Spring Boot adopts the way of Spring Data for unified processing. The bottom layer of Spring Boot uses Spring Data to uniformly process various databases. Spring Data is also a well-known project in ...

Added by rgermain on Sun, 09 Jan 2022 12:43:05 +0200

Spring Boot annotation @ Async and custom thread pool

preface   when learning thread pool, we all know that the core parameters such as the number of core threads, the maximum number of threads and the thread factory of the thread pool are very important, so we should remember them by heart. However, some siege lions who have worked for five or six years may not be able to say how to initiali ...

Added by ifty on Sun, 09 Jan 2022 12:13:00 +0200

Spring -- Essence and code example of IOC

gossip Hahaha, I've been reading computer network books recently. I'm a little lazy when updating my blog. Continue today Basic points 1. IOC essence Inversion of Control (IoC) is a design principle in object-oriented programming, which can be used to reduce the coupling between computer codes.Control inversion is a way to produce or obtain ...

Added by ipruthi on Sun, 09 Jan 2022 10:25:50 +0200

Play with Spring - customize Spring Starter

1 what is Spring Starter From the official website Starters are a set of convenient dependency descriptors that you can include in your application. You get a one-stop shop for all the Spring and related technologies that you need without having to hunt through sample code and copy-paste loads of dependency descriptors. For example, if y ...

Added by edgev on Sun, 09 Jan 2022 08:57:18 +0200