Development of Spring+Redis+RabbitMQ current limiting and second kill projects

This article will comprehensively demonstrate Spring Boot's integration of JPA, Redis cache and RabbitMQ message queue around the current limiting and second kill requirements in high concurrency scenarios. This project will realize the effect of current limiting and second kill by integrating Springboot, Redis and Lua scripts, and will realiz ...

Added by Theophilus on Thu, 03 Feb 2022 00:23:43 +0200

Enrich Bean configuration

We are not unfamiliar with how beans are configured. After all, it has been involved in the previous article, although it is relatively superficial. But it also introduces how to write an XML configuration file to tell the Spring container how to create beans, how to inject dependencies, and so on. The key points are as follows: 1. < Bean & ...

Added by Ryaan on Wed, 02 Feb 2022 23:05:41 +0200

Spring MVC project construction

Spring MVC project construction IDEA version: 2021.1 (the operation steps of each version are roughly the same) 1. Create an empty project and create a web module under the project Exit the current project: Choose to create an empty project: Select project name and location: After the empty project is completed, we choose to creat ...

Added by Ree on Wed, 02 Feb 2022 21:12:42 +0200

Analyzing the principle of Spring's @ Configuration annotation attribute proxyBeanMethods

preface There is an annotation @ Configuration in the Spring framework that appears frequently. If you still feel unfamiliar, we can go to the Spring boot autoconfigure package of SpringBoot. You can find that each Configuration class must have an @ Configuration annotation, in which there is an attribute proxyBeanMethods. What is its function ...

Added by blckspder on Wed, 02 Feb 2022 17:56:20 +0200

Annotations commonly used in Spring (absolutely innocent)

catalogue   1, Common Spring annotations - IOC related 1. Used to create objects 2. Used to change the scope of action 3. Life cycle related​​​​​​​ 2, Load annotations for third-party resources 1,@Bean 2. What is the difference between @ bean ? and @ component ?? 3. Integrating MyBaitis with annotations 4. Integrating JDBC with anno ...

Added by dlgilbert on Wed, 02 Feb 2022 10:59:40 +0200

Simple learning of Spring framework

1. Basic configuration of spring When xml is injected, the value of value is given to the constructor. When it is created, it is not assigned a name variableMulti tag getBeanimport, which is used to merge xml configurations (generally used by teams, when each person develops different types and needs to configure them together) The remaini ...

Added by johnrcornell on Wed, 02 Feb 2022 10:54:26 +0200

Learn Spring - JdbcTemplate and Spring transactions from scratch

1. jdbcTemplate 1.1 basic concepts JdbcTemplate is a template object provided in the spring framework. It is a simple encapsulation of the original cumbersome Jdbc API object Core object JdbcTemplate jdbcTemplate = new JdbcTemplate(DataSource dataSource); Core method Execute addition, deletion and modification statements int update(); / ...

Added by salomo on Wed, 02 Feb 2022 10:35:43 +0200

Detailed explanation of Spring Bean life cycle

There are 13 links in the Spring bean life cycle Stage 1: Bean meta information configuration stage Stage 2: Bean meta information parsing stage Phase 3: register the Bean into the container Phase 4: BeanDefinition merge phase Phase 5: Bean Class loading phase Stage 6: Bean instantiation stage (2 small stages) Pre instantiation stage ...

Added by brcolow on Wed, 02 Feb 2022 06:10:48 +0200

In the process of Spring Bean instance, how to use Bean properties of reflection and recursive processing to fill in?

Author: Xiao Fu Ge Blog: https://bugstack.cn Precipitate, share and grow, so that you and others can gain something! 😄 Catalogue of Spring hand roll column Chapter 1: Opening introduction, I'm going to take you to Spring! Chapter 2: Small test ox knife, to achieve a simple Bean container Chapter 3: First show your skill and use desig ...

Added by steve@MRS on Wed, 02 Feb 2022 04:08:37 +0200

Why does Spring's IOC container use reflection instead of new to create instances?

1. What is reflection? Reflection is a feature of java. For any class, you can know all the properties and methods of this class, and for any object, you can call any of its methods and properties. This dynamically obtained information and the function of dynamically calling the method of the object are called the reflection mechanism of j ...

Added by hagman on Tue, 01 Feb 2022 23:03:04 +0200