Principle analysis of mybatis Spring integration

I have combed the workflow and key source code of MyBatis when it is used alone. Now let's see how MyBatis works when it is integrated with Spring Start with use Spring integrates MyBatis 1. Introduce dependency. In addition to the dependency of MyBatis, you need to introduce the dependency of MyB ...

Posted by juschillin on Sat, 22 Feb 2020 20:43:01 -0800

Pool technology -- custom thread pool

Catalog Pool technology -- custom thread pool 1. Why use thread pools? 1.1 characteristics of pool technology: 1.2 benefits of thread pool: 1.3 how to customize a thread pool 2. Three methods 2.1. Thread pool method of single thread 2.2. Fixed thread pool size method 2.3 me ...

Posted by Justin98TransAm on Sat, 22 Feb 2020 19:42:40 -0800

Common design patterns in Java framework

Article directory Preface 1. What is design pattern 2. Java reflection technology 2.1 building objects by reflection 2.2 reflection method 2.3. Example 3. Dynamic agent mode 3.1. JDK dynamic agent 3.2 CGLIB dynamic agent 3.3 interceptor 3.4. Example 4. Responsibility chain model 4.1. Example 5. O ...

Posted by rickaclark on Fri, 21 Feb 2020 20:55:30 -0800

JAVA Foundation - Dynamic Proxy for JDK Implementation

Dynamic Proxy in JAVA The difference between dynamic proxy and static proxy classes is that dynamic proxy can dynamically create proxy classes while the program is running, execute proxy class methods, and run extended methods called by proxy classes. Dynamic Proxy for JDK Implementation ​ The dyna ...

Posted by xpherism on Fri, 21 Feb 2020 17:51:28 -0800

alpine of Docker customizes alicloud image

Article directory Introduction to alpine Linux Making JDK8 image based on alpine 1. Making jdk image by alpine 2. Create and edit dockerfile 3. Execute dockerfile to create image 4. Create and start the container 5. Enter the container 6. test jdk 2. Alpine makes jre image (slimming) Minimum JRE b ...

Posted by angrytuna on Fri, 21 Feb 2020 03:34:39 -0800

The Difference and Principle Analysis between SPI Mechanism and JDK Mechanism of Dubbo

Starting today, you will learn more about DUbbo.First, give a brief overview of DUbbo. Summary Dubbo is the core framework for SOA (Service Oriented Architecture) service governance solutions.Used for distributed calls with a focus on distributed governance. Simply put, it can be divided into four roles.Provider s, Consumer s, registration cent ...

Posted by Boom.dk on Wed, 19 Feb 2020 10:42:21 -0800

What's the use of Collection and Iterable interface

From today on, I want to sum up again what java has to do with collections. It's convenient for me to review. Besides, spring moves are also here. It's terrible. I want to learn them seriously. I can't learn from the epidemic. It's beautiful. Well, there's no more nonsense. Let's take a look at a pictur ...

Posted by IronicSoul on Wed, 19 Feb 2020 03:12:52 -0800

Arrays in Java

In Java, array is a kind of reference data type. It is the simplest compound data type and a collection of ordered data. Each element in the array has the same data type. You can use a uniform array name and different subscripts to determine the unique elements in the array. According to the dimension o ...

Posted by Ruiser on Fri, 14 Feb 2020 03:23:36 -0800

Basic data structure example: stack, queue, linked list, data, dictionary, tree, etc

CatalogData structure: Stack queue Linked list3.1 one way list3.2 two way list3.3 reversal of one-way linked listarrayDictionary implementation principle5.1 hash table5.2 hash functiontree6.1 binary tree, full binary tree, complete binary tree6.2 hash tree6.3 B-tree/B+tree Stack stackStack, also known as stack, is a linear table with limited op ...

Posted by Kingy on Fri, 14 Feb 2020 00:51:27 -0800

[Java_22] JDK New

JDK 1.8 New 1. Functional interface 1. Functional interface (1) Concepts *Interfaces with only one abstract method (2) Format @FunctionalInterface //Use this comment to determine if the interface is a functional interface. public class class name { public abstract return value method name (parameter list); } 2. Funct ...

Posted by starnol on Thu, 13 Feb 2020 12:55:40 -0800