Factory mode of design mode
The design principle is a summary of some experience guiding our code design, that is, "mental method"; Object oriented is our "weapon"; Design pattern is "move".
Based on mental skill, use weapon moves to deal with complex programming problems.
Cousin: brother, I read the news today that the EU has expanded s ...
Added by prinzcy on Thu, 03 Mar 2022 16:29:53 +0200
Working principle and entry program of MyBatis
(1) Read the configuration file of MyBatis. mybatis-config.xml is the global configuration file of MyBatis, which is used to configure database connection information.
(2) Load mapping file. The mapping file is the SQL mapping file, in which the SQL statements for operating the database are configured, which needs to be in the MyBatis config ...
Added by Placebo on Thu, 03 Mar 2022 15:31:53 +0200
Annotation and reflection
annotation
Annotation
Introduction to annotation
Can be read by other programsFormat: @ + annotation nameUsage: it can be attached to package, class, method, field, etc., which is equivalent to adding auxiliary information to access the content under the annotation through the reflection mechanism
Built in annotation
@Override: defined in ...
Added by homerjay on Thu, 03 Mar 2022 15:20:22 +0200
Step on the pit to decrypt wechat applet login authorization to obtain mobile phone number
Decrypt wechat applet login authorization to obtain mobile phone number
according to Official documents Wechat applet process: According to the interpretation of the official encryption data decryption algorithm:
1. The algorithm used for symmetric decryption is AES-128-CBC, and the data is PKCS#7 filled. 2. The target ciphertext of symme ...
Added by galmar on Thu, 03 Mar 2022 14:19:19 +0200
JAVA learning -- 4 Dynamic array implementation
Dynamic array implementation
1. Class structure
The construction of all classes needs to be considered from two aspects: properties and methods.
attribute To construct a dynamic array, we first need an array with uncertain size, and then determine the size of the array when calling its constructor. Secondly, some parameters about the array: ...
Added by davemwohio on Thu, 03 Mar 2022 14:07:07 +0200
Network programming, WebSocket Foundation
Network programming, WebSocket Foundation
summary:
Network globalization connects the world through the network. Connect through domain name (ip address) and port number. Real time interaction: when making a call, the technology used is TCP connection. Transmit information: send information. UDP connection is used. Computer network:
...
Added by Toboe on Thu, 03 Mar 2022 13:33:49 +0200
Multithreading tutorial ThreadPoolExecutor
Multithreading tutorial (32) ThreadPoolExecutor
1. Thread pool status
ThreadPoolExecutor uses the upper 3 bits of int to indicate the thread pool status and the lower 29 bits to indicate the number of threads
Status nameHigh 3 bitsReceive new tasksProcessing blocking queue tasksexplainRUNNING111YYSHUTDOWN000NYNew tasks are not received, bu ...
Added by sheffrem on Thu, 03 Mar 2022 12:48:27 +0200
Application practice of 04 Nacos service registry
Background analysis
In microservices, the first problem we need to face is how to find services (software is a service), and the second is how to communicate between different services? How to manage every service in the application better and more conveniently, and how to establish the link between various services, so that the registration c ...
Added by Assim on Thu, 03 Mar 2022 10:11:53 +0200
From rookie to expert, HMS Core image segmentation service teaches you how to make fine matting in complex background
Since 2021, the self driving track has entered an explosive period, and the industry has become a battleground for large manufacturers and start-ups. Among them, many companies have adopted computer vision as the technical base of automatic driving. Through image segmentation technology, cars can effectively understand the road scene and distin ...
Added by stylefrog on Thu, 03 Mar 2022 09:34:46 +0200
There are six common ways for Spring to inject bean s
I General form of annotation injection
Bean class
public class TestBean{
}
Configuration class @The Configuration annotation marks this class, which indicates that this class is a Spring Configuration class. It will be loaded when loading the Configuration.
@The annotation of Bean indicates that this is a method of injecting Bean, which wi ...
Added by mubashir on Thu, 03 Mar 2022 09:06:09 +0200