Reactor pattern

Article directory 1. Single-threaded Reactor reactor mode 2. Multi-threaded Reactor reactor mode In Java’s OIO programming, the original and most primitive network server program uses a while loop to constantly monitor the port for new connections, and if so, calls a processing function to handle it. The biggest problem with this method is that if […]

Analysis of hazard factors based on air pollution data

1. Project background In recent years, with the development of social economy and the improvement of people’s living standards, environmental pollution has attracted more and more attention. Air pollution is one of the greatest environmental threats to human health, alongside climate change. It is estimated that exposure to air pollution causes 7 million premature deaths […]

The Vue2 project was refactored into a nuxt.js project, which was a pitfall for axios.

Personal website: https://aijianli.site/ You can create a resume online for free and provide PDF download, which is convenient and fast. In order to solve the SEO problem of the resume production website I developed myself, I transformed the front-end Vue project into a nuxt.js project. During this process, problems with the axios reference had troubled […]

Spring BeanFactory

Spring BeanFactory 1.What is Spring BeanFactory Spring BeanFactory is the infrastructure of Spring containers. All containers inherit from BeanFactory. , which is a factory that manages and maintains Spring Beans. BeanFactory is responsible for creating, configuring, and managing Bean instances, and also provides management and control of the Bean life cycle. BeanFactory is the most […]

FactoryBean for Spring instantiation source code analysis (11)

Originally, this chapter needed to explain the instantiation process of singleton beans, but suddenly I discovered that the custom FactoryBean was actually instantiated during registerBeanPostProcessors, and I planned to find out. The function and usage of FactoryBean have been explained in the article Manually Implementing the Mybatis Proxy Interface Object. This chapter mainly analyzes the […]

springframework.beans.factory.NoSuchBeanDefinitionException:No qualifying bean of type x available

Article directory 1. Reproducing the error 2. Analysis errors 3. Solve the problem 3.1 Solution 1 3.2 Solution 2 4. Analyze the dynamic proxy of jdk and cglib in spring 4.1 Dynamic proxy comparison 4.2 Differences in principles 4.3 Performance differences 4.4 Respective limitations 4.5 The essential difference between static agents and dynamic agents 1. […]

Spring Cloud Alibaba GateWay’s routing assertion factory

Spring Cloud Gateway uses route matching as the most basic function. This function is accomplished through the routing assertion factory. Spring Cloud Gateway contains many built-in routing assertion factories. All these assertions can match different attributes of HTTP requests, and multiple routing assertion factories can be combined based on logic and status. 1. After routing […]

Factory Method Pattern

Alias Virtual Constructor. Definition The factory method is a creational design pattern that provides a method to create objects in the parent class and allows the subclass to determine the type of instantiated object. Foreword 1. Question Suppose you are developing a logistics management application. The initial version could only handle trucking, so most of […]

[mmdetection] featmap_strides and finest_scale in ROIExtractor

Featmap_strides is wrong and results in no performance When I used FasterRCNN to run my own data set, I found that there was almost no performance (0.8%). Later I found the reason and found that it was: In FasterRCNN, the featmap_strides of the SingleROIExtractor in the second stage is written as [8, 16, 32, 64] […]

Springboot extension point series_BeanFactoryPostProcessor

1. Functional features The execution of BeanFactoryPostProcessor is a very important part of the Spring Bean life cycle; BeanFactory level post-processor, org.springframework.beans.factory.config.BeanFactoryPostProcessor#postProcessBeanFactory will only be executed once during the Spring life cycle; Allows the BeanDefinition data to be read after the container reads the BeanDefinition data and before the bean is instantiated, and can be […]