The combination of java foundation and source code is an important knowledge point for understanding string classes

String class String classes mainly refer to string, StringBuffer and StringBuilder. As can be seen from the source code comments, both string and StringBuffer are jdk1 0, and StringBuilder is jdk1 5. Generally speaking, the most commonly used is String, which is immutable, followed by variable StringBuilder and StringBuffer. StringBuffer is th ...

Posted by JamesThePanda on Tue, 04 Jan 2022 09:37:04 +0100

Handwritten a simple vue response to take you to understand the principle of response

Vue2.x-response principle 1. Application of defineproperty In vue2 X response uses defineProperty for data hijacking, so we must have a certain understanding of it. Let's first understand its usage. Here, we use defineProperty to simulate data in Vue. <body> <div id="app"></div> <script> // Simulate Vu ...

Posted by introvert on Sun, 02 Jan 2022 19:31:52 +0100

Spring framework advanced spring v2 0

1. The essence of IOC Map container: the essence of IOC container is a map ApplicationContext context: holds a reference to BeanFactory Bean factory factory: responsible for obtaining beans from containers BeanDefinitionReader parser: responsible for parsing all configuration files Definition meta information configuration: xml, yml, ann ...

Posted by peppeto on Sun, 02 Jan 2022 15:47:05 +0100

Hundreds of lines of code to write a Mybatis, the principle is thorough!

Author: Xiao Fu Ge Blog: https://bugstack.cn Precipitate, share and grow, so that you and others can gain something! 😄 1, Foreword The core principle of Mybatis is also the embodiment of its most convenient use. Why? Because when we use Mybatis, we only need to define an interface that does not need to write implementation classes, a ...

Posted by peddel on Sat, 01 Jan 2022 23:10:00 +0100

Spring source code download and construction skills based on Gradle

1 spring 5 source code download First of all, your JDK needs to be upgraded to version 1.8 or above. Starting from Spring 3.0, the Spring source code is hosted by GitHub, and the official website download link is no longer provided. I won't go into too much detail here. You can go to GitHub website to download by yourself. The download link of ...

Posted by gregchet on Sat, 01 Jan 2022 20:07:12 +0100

Spring source code download and construction skills based on Gradle

1 spring 5 source code downloadFirst of all, your JDK needs to be upgraded to version 1.8 or above. Starting from Spring 3.0, the Spring source code is hosted by GitHub, and the official website download link is no longer provided. I won't go into too much detail here. You can go to GitHub website to download by yourself. The download link of t ...

Posted by jumpfroggy on Thu, 30 Dec 2021 15:59:20 +0100

Add some practice to learning and develop a distributed im (instant messaging) system!

catalogue 1, Foreword 2, Demonstration 3, System design 4, UI development 1. Overall structure definition and sidebar 2. Dialog box 3. Friends bar 4. Event definition 5, Communication design 1. System architecture 2. Communication protocol 3. Add friends 4. Message response 5. Disconnection and reconnection 6. Trunking communica ...

Posted by nicko on Sun, 26 Dec 2021 20:29:26 +0100

The little-known details in the IoC container of Spring's core principles

This article is excerpted from Spring 5 core principlesThe Spring IoC container also has some advanced features, such as pre initializing beans using the lazy init attribute, generating or modifying Bean objects using factorybeans, and managing Bean declaration cycle events using the BeanPostProcessor post processor during Bean initialization.1 ...

Posted by akitchin on Sun, 26 Dec 2021 05:48:41 +0100

[redis source code learning] redis exclusive "linked list": ziplist

Problem throw Have you used Python's list? It is a data structure that can store any type of data and supports random reading. If you haven't used it, there's no way. In essence, this list can use arrays and linked lists as its underlying structure. I don't know what the list in Python takes as its underlying structure. But redis's list ...

Posted by sirkodo on Fri, 24 Dec 2021 22:21:35 +0100

Automatic configuration principle of spring boot 2

Today, I learned the automatic configuration principle of springboot 2 and thought it was very clever, so I recorded my learning experience. 1. Preliminary knowledge Before introducing the automatic assembly principle of springboot 2, there are several annotations that we need to understand. In my opinion, these annotations are the basis of ...

Posted by davissj on Fri, 24 Dec 2021 19:09:24 +0100