A thorough understanding of Bean analysis, creation, and use in Spring

Spring Loads Beans, Instantiates Beans, Gets Bean Processes The purpose of this paper is to analyze the process of Spring loading beans, instantiating beans, and getting beans by analyzing the source code. Some of the core content will be explained in the source code.Content is dull, careful! Step one, start a Spring project Spring Startup ...

Posted by fusionpixel on Sun, 28 Jun 2020 02:23:28 +0200

Cardinality sorting (Java)

Cardinality sorting (Java) Blog description The information involved in this article comes from Internet collation and personal summary, which means personal learning and experience summary. If there is any infringement, please contact me to delete, thank you! Introduction to cardinality sort (bucket sort) radix sort belongs to distribution s ...

Posted by eagleweb on Sat, 27 Jun 2020 11:09:37 +0200

RocketMQ dead letter queue | how to deal with the exception of the consumer?

stay RocketMQ repeated consumption problem | the introduction of idempotent mechanism into the core process of order system In this paper, we discuss the problem of repeated message consumption. A better solution is to use business judgment on the consumption side to ensure the idempotence of the interface, so as to avoid the problem of repeate ...

Posted by GaryE on Sat, 27 Jun 2020 10:41:09 +0200

Loading of spring IOC beans

preface This series is based on Spring 5.2.2.BUILD-SNAPSHOT. Because the whole system of Spring is too large, only the source code of key parts will be parsed. This article mainly introduces how the Spring IoC container loads bean s. text Let's take a look first Loading and registration of Spring IoC BeanDefinition To obtain the bean insta ...

Posted by nels on Sat, 27 Jun 2020 07:22:57 +0200

[Distributed Lock] 03-Redisson for RedLock principles

Preface You've learned the principles of Redission reentrant locks and fair locks before, and then you'll see how Redission implements RedLock. RedLock principle RedLock is a redis-based distributed lock that guarantees the following features: Mutual exclusion: At any time, only one client can hold a lock; avoid deadlocks: When the clie ...

Posted by Shendemiar on Sat, 27 Jun 2020 02:29:15 +0200

[Java foundation] multithreading

1. Multithreading 1.1 concurrent and parallel Concurrent: two or more events occur in the same time period Parallel: two or more events occur at the same time 1.2 threads and processes A process is an execution process of a program. A process is the basic unit for the system to run an applicati ...

Posted by Spinicrus on Fri, 26 Jun 2020 05:05:57 +0200

Reconstruction of JAVA chat room -- a simple framework of CS mode

preface Since the beginning of data mining, I haven't written blog about technology for a long time. Recently, school JAVA The course design requires to realize a chat room. I think I wrote one last year, but I didn't realize some of the required functions, but looking at the original code, it seems that it's a little bit difficult to add func ...

Posted by samvelyano on Fri, 26 Jun 2020 04:17:25 +0200

Aggregation and Dependency of Maven Projects

Aggregation and Dependency of Projects 1 Aggregation When a project is multi-module, how to build multiple modules at once instead of executing Maven commands separately under multiple modules. 1.1 Parent-Child Structure <!--Parent Module netsales-poss In packaging Must be pom--> <packaging>pom</packaging> <!--Parent Modu ...

Posted by Illusion on Thu, 25 Jun 2020 18:31:40 +0200

One article tells you how much CPU branch prediction affects performance

originate stackoverflow Last question Why it is faster to deal with an ordered array than to deal with an array without it , there are some discussions in the original text. Let's first reproduce the results and then explain why! We have the following two sections of code. The code looks similar, but in fact, the logic is the same. They count t ...

Posted by ray-solomon on Thu, 25 Jun 2020 14:28:53 +0200

The simplest Spring Security tutorial in history: successful login to SuccessHandler advanced usage

  So that is what it is. We are lucky to know how to configure the page that is successfully logon after the login and how to specify the system to jump to an address. Yes, it's so simple. The Spring Security framework helps us do most of the work, but we can use it with a little configuration. How ...

Posted by JUMC_Webmaster on Thu, 25 Jun 2020 13:09:20 +0200