The secret of Spring framework

Spring 1. Introduction to spring framework Spring, born in 2002, was created by Rod Johnson. Spring framework is an open source, lightweight project management framework that integrates many design patterns. Committed to JAVAEE lightweight solutions. Compared with the original framework, the spring framework is essentially different fro ...

Added by phpretard on Thu, 20 Jan 2022 06:50:44 +0200

Spring cloud Lecture 10: gateway spring cloud gateway

The gateway (second generation) of spring cloud ecology will replace Zuul (first generation) in the future. Gateway is built based on Netty (network communication framework, which can realize high-performance server and client), Reactor and WebFlux (Web Framework Based on Reactive) Benefits of spring cloud gateway Strong performance: zuul1 is ...

Added by headbangerbuggy on Thu, 20 Jan 2022 01:15:20 +0200

Spring core source code learning - IoC load Bean: create the initialization Bean object of the Bean

1. initializeBean // AbstractAutowireCapableBeanFactory.java protected Object initializeBean(final String beanName, final Object bean, @Nullable RootBeanDefinition mbd) { if (System.getSecurityManager() != null) { // safe mode AccessController.doPrivileged((PrivilegedAction<Object>) () -> { // <1> Ac ...

Added by OM2 on Wed, 19 Jan 2022 20:56:41 +0200

Spring03--AOP aspect oriented programming

1.1 AOP introduction AOP (aspect oriented programming), aspect oriented programming. Aspect oriented programming is to consider the program running process from a dynamic point of view. The bottom layer of AOP is realized by dynamic agent mode. Two kinds of agents are used: dynamic agent of JDK and dynamic agent of CGLIB. AOP is the ab ...

Added by mrjam on Wed, 19 Jan 2022 20:10:31 +0200

Redisson delay queue execution process source code analysis

preface The previous article described the delay queue of JDK[ DelayQueue delay processing task record]In the actual distributed project, the delay queue of JDK is not used for the delay task. Because it is based on JVM memory storage and has no persistence operation, the task will be lost after the service is restarted.In the project, MQ dead ...

Added by Zero20two on Wed, 19 Jan 2022 16:26:04 +0200

Sharding Sphere helps you deal with data "one click desensitization"

Name mobile phone numbers are often stored in databases, such as ID number, bank card number, name and phone number. Such information is usually required to store encrypted storage to meet compliance requirements according to compliance requirements. Pain point 1: The usual solution is to manually encrypt and insert the corresponding encrypte ...

Added by ozzythaman on Wed, 19 Jan 2022 15:39:44 +0200

Spring boot handles annotations for request parameters

preface In springboot, there are several annotations for processing url request parameters, which are: @PathVariable, @ RequestHeader, @ RequestParam, @ MatrixVariable, @ RequestBody, let's learn today.   text 1,@RequestParam @RequestParam can be used to assign the specified request parameter to the formal parameter in the method. The source co ...

Added by socadmin on Wed, 19 Jan 2022 15:37:07 +0200

Pit Guide: three ways for Spring to configure data sources

👏 About the author: Hello, I'm cabbage ~ ~, a sophomore in school, and a new star creator in the Java field.📝 Personal homepage: Cabbage CSDN blog📕 Series column: This article is written in the Java design pattern column: Spring5 knowledge record📧 If there are mistakes in the knowledge points of the article, please correct them! Learn and m ...

Added by gortron on Wed, 19 Jan 2022 11:37:02 +0200

Application of Spring core annotation

Overall introduction to Spring framework functions Spring Core Container Core and Beans modules are the basic parts of the framework, providing IoC and dependency injection features The core of ioc's idea is that resources are not managed by both parties who use resources, but by a third party who does not use resources, which can bring ...

Added by gclx on Wed, 19 Jan 2022 10:46:47 +0200

002SpringIOC002 configuring beans based on XML files

1 manage ordinary beans 1.1 creating objects The creation of objects can be realized by using bean tags in the configuration file. The configuration is as follows: 1 <bean id="user" class="com.demo.spring.User"></bean> By default, the parameterless constructor in the class is used. Attribute description in bean tag: id attribute: ...

Added by achintha on Wed, 19 Jan 2022 10:14:34 +0200