java thread communication
Multithreaded
Thread Synchronization
1. Methods involved
wait (): Once this method is executed, the current thread is blocked and the synchronization monitor is releasednotify(): Once this method is executed, a process being waited is waked up, and if more than one thread is waiting, a higher priority thread is waked upnotifyAll(): Once this ...
Posted by holiks on Fri, 12 Nov 2021 12:37:56 -0800
What is IOC? Teach you to roll an IOC container
IoC
What is IoC?
IoC is the abbreviation of inversion of control. Note that it is a technical idea. It describes the creation and management of objects.
Traditional development methods: for example, if class a depends on class B, it often creates a new object of class B in class A.IoC development method: we don't need to go to the new object ...
Posted by arcanechaos on Fri, 12 Nov 2021 12:32:58 -0800
6. Arrays and Sorting
Catalog
1. Array base
1.1. Introducing arrays
Initial Value and Creation of 1.2 Array
1.3 Array Practice
2. Array Expansion
2.1 Custom Array Expansion
2.2 System-defined Array Expansion Method
3. Method encapsulation in arrays
3.1 References on Methods
3.2 Variable parameters
Return value of 3.3 method returns array
4. Sorting
4.1 ...
Posted by langer on Fri, 12 Nov 2021 10:15:32 -0800
How to realize automatic management of module life cycle in Android componentization
preface
Each application initializes an application class when it is started. We can do some initialization operations in this class, such as the initialization of a third-party sdk. After the component project is implemented, different business modules also need to do some initialization operations when the application is started. This involv ...
Posted by pete_bisby on Fri, 12 Nov 2021 08:29:36 -0800
Java linked list data structure brush notes summary
Java linked list data structure brush notes summary
This article has referred to the labuladong algorithm, and has compiled some notes and thoughts. You can pay attention to his official account. I'm a vegetable 555. I've just started to brush questions. I'll take notes here. Hey hey~
Characteristics of linked list
Types of linked lists ...
Posted by rn14 on Fri, 12 Nov 2021 07:39:22 -0800
Use of Spring Data Redis Stream
1, Background
The Stream type is a new type after redis5. In this article, we use Spring boot data redis to consume the data in Redis Stream. Realize independent consumption and consumption group consumption.
2, Integration steps
1. Import jar package
<dependencies>
<dependency>
<groupid>org.springframework.boot</ ...
Posted by David Wood on Fri, 12 Nov 2021 05:24:57 -0800
Singleton mode of design mode
Singleton mode
Baidu Encyclopedia: Singleton mode is a common software design mode of creation type. The class created by the method of singleton mode has only one instance in the current process (if necessary, it may belong to singleton in a thread, for example, only the same instance is used in the thread context)
summary
Personal ...
Posted by rekha on Fri, 12 Nov 2021 03:23:52 -0800
SSM integrated configuration process and mybatis plus agile development plug-in usage
Spring/Spring MVC/MyBatis(SSM) integration configuration process
Usage of mybatis plus agile development plug-in
Main knowledge points
SSM consolidation configuration
Mybatis plus configuration and Application
SSM consolidation configuration
Manage the third-party framework objects through the Spring IoC container, so that multiple framew ...
Posted by stelthius on Fri, 12 Nov 2021 02:07:45 -0800
Introduction to policy mode and its specific usage scenarios
preface
Today, I optimized the previous business code with the strategy mode and reviewed the relevant concepts of the design mode. I'll record it here
1, Introduction to policy mode
definition:
The policy pattern defines the algorithm family and encapsulates them separately so that they can replace each other. This pattern makes ...
Posted by stubarny on Fri, 12 Nov 2021 02:02:41 -0800
In the era of saas craze, workflow seems to be a professional quality
preface
Now more and more projects begin to use workflow to meet their daily work. Today, let's take a look at the workflow of Activiti. Let's start with BPMN painting
Environment installation
BPMN documents about processes are mainly integrated through eclipse development tools. The idea is mainly painted by actiBPM, but actiBPM is no long ...
Posted by mechew on Fri, 12 Nov 2021 01:16:00 -0800