Spring obtains single instance process

After reading this article, you will get In the getBean method, Spring handles aliases and the name of factoryBean How Spring gets beans from multi-level cache according to beanName How Spring deals with getting common beans and factorybeans from users introduction from Initialization of Spring container In, we learned how Spring convert ...

Added by SirEddie on Sat, 06 Jun 2020 08:47:18 +0300

Simple use of redis distributed lock

RedisLock -- make Redis distributed lock simple catalog 1. Project introduction 2. Fast use 2.1 introducing maven coordinates 2.2 register RedisLock 2.3 use 3. Participation and contribution 4. Contact the author 5. Open source protocol 1. Project introduction This project mainly simplifies the operation of redis distributed transact ...

Added by work_it_work on Sat, 06 Jun 2020 05:57:21 +0300

Database idle connection disconnection caused by firewall

catalog 1, Problem description 2, Step by step analysis of problems 1, java.net.SocketException : how is the broken pipe exception generated? What's the impact? 2. Why is the database TCP connection broken? 3. The effect of firewall cutting off database connection 3, Solutions 1. Adjust the cut-of ...

Added by Popcorn on Fri, 05 Jun 2020 10:51:02 +0300

[JVM Story] The Birth of a Java Byte Code File

Long text in thousands of words, completely fictitious.   (1)   An intern came to the group. After Li Dafang finished, he felt his level was average, but he still stayed. Why?Let's guess.Li Da-fat also enlightened himself in his heart. Students should not ask too much, as long as they are willing to go up and slowly.Just call it Xiao Bai.Xi ...

Added by Kingw on Fri, 05 Jun 2020 03:51:28 +0300

Student management system (BS version) & file upload

Student management system (BS version) & file upload 1, Student management system (BS version) 1.1 environment construction Create project, create package, add jar package Four jsp pages Home page( index.jsp) Use the index.jsp Yes, provide a hyperlink to all student list pages All st ...

Added by JamesyBHOY on Thu, 04 Jun 2020 16:21:25 +0300

HashMap: Source code (constructor, put, resize, get, remove, replace)

1. Constants (1) Default table size, 1 shifts left four bits to 8 static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; // aka 16 (2) Maximum table length static final int MAXIMUM_CAPACITY = 1 << 30; (3) Default load factor size: static final float DEFAULT_LOAD_FACTOR = 0.75f; (4) Tree threshold static final int TREEIFY_ ...

Added by defect on Thu, 04 Jun 2020 07:52:52 +0300

SpringSecurity - Authentication + Authorization Code Implementation

Authentication + Authorization Code Implementation Spring Security is a security framework based on Spring AOP and Servlet filters.It provides a comprehensive security solution while handling authentication and authorization at the Web request and method call levels. Previously, I blogged about the theory of authentication and authorization ...

Added by john_nyc on Thu, 04 Jun 2020 04:08:57 +0300

Talk about puma's DefaultTaskExecutor

order This paper focuses on puma's DefaultTaskExecutor TaskExecutor puma/puma/src/main/java/com/dianping/puma/taskexecutor/TaskExecutor.java public interface TaskExecutor extends LifeCycle { boolean isStop(); boolean isMerging(); void stopUntil(long timestamp); void cancelStopUntil(); void setContext(PumaContext context ...

Added by tsg on Wed, 03 Jun 2020 19:14:37 +0300

Handwritten implementation of IOC and AOP through a case of bank transfer

I was asked hundreds of times about IoC and AOP in my last interview, and I was still silly and confused?We understand the two ideas of IOC and AOP. Next, let's not consider how Spring achieves these two ideas. First, through a case of bank transfer, we analyze the code level problems in this case.Use our existing knowledge to solve these prob ...

Added by mrskhris on Tue, 02 Jun 2020 14:16:52 +0300

Some understanding of countDownLatch

1. Background: countDownLatch was introduced in Java 1.5, along with CyclicBarrier, Semaphore, concurrentHashMap and BlockingQueue. Exists in java.util.cucurrent Under the bag.   2. Concept countDownLatch is a class that enables a thread to wait for other threads to complete their execution before executing. It is impl ...

Added by ChrisF79 on Mon, 01 Jun 2020 17:51:17 +0300