Detailed explanation of factory mode of design mode

Classification of patterns The creation pattern provides a mechanism for creating objects, which can improve flexibility and the importance of existing code The structure pattern explains that objects and classes assemble a larger structure while maintaining the flexibility and efficiency of the structure The behavior model is responsibl ...

Posted by gardnc on Tue, 17 May 2022 14:26:51 +0300

SpringBoot foundation and partial integration (to be improved)

SpringBoot What is micro service What is the difference between microservices and the past Why is SpringBoot suitable for microservice framework Lack of SpringBoot or microservice springBoot startup process How to automatically assemble and customize the configuration of springBoot First, there are a few notes @Configuration: declar ...

Posted by dkjariwala on Tue, 17 May 2022 13:38:37 +0300

How to get Docker images to take off, so simple to set up

I. Introduction Docker is great to use, especially when it comes to DevOps practices. However, when you pull mirrors in China or locally, you often encounter various "constipation" - either the mirror pull is slow, or the connection is intermittent, or the connection times out! When our images are large (like someone dropped a Warcr ...

Posted by genom on Tue, 17 May 2022 13:01:00 +0300

An algorithm for continuously outputting interview questions -- assignment sorting

Opening introduction Hello everyone, I'm sister tights from the most complete interview question bank in Java. Today's article is the fifth on data structures and algorithms, which mainly introduces assignment sorting; In the follow-up, we will continue to summarize along the knowledge line at the beginning of the first article, so as to achiev ...

Posted by Johannes80 on Tue, 17 May 2022 11:28:08 +0300

Introduction to Stream in Java 8

catalogue What is Stream How to create a Stream Operate on Stream Advanced Sequential flow Inert intermediate operation Execution sequence of operations summary What is Stream To answer this question, let's take a look at how the relevant JavaDoc describes: A sequence of elements supporting sequential and parallel aggregate oper ...

Posted by shergold on Tue, 17 May 2022 11:09:16 +0300

IDEA uses maven to build SSM framework integration project (super detailed, worth a visit)

catalogue reminder Briefly introduce SSM Construction process 1, Frame introduction 2, Download Maven 3, Create Maven project 4, Jar package to be introduced for Maven project 5, Integrate SSM framework, relevant required configuration files and configuration items 6, Importing Jar package and configuring tomcat project 7, Reverse engineeri ...

Posted by Eugene on Tue, 17 May 2022 08:33:50 +0300

Detailed explanation of red and black trees

Red black tree The concept of red black tree Red black tree , is a kind of Binary search tree , but Add a storage bit on each node to represent the color of the node, which can be Red or Black . By limiting the coloring method of each node on any path from root to leaf, the red black tree ensures that no path will be two longer ...

Posted by Easter Bunny on Tue, 17 May 2022 02:24:17 +0300

Java: network programming

Network programming What is network programming? Network programming allows programs to interact with programs in other devices on the network. Basic mode of network communication There are two common communication modes: client server (CS) and Browser/Server(BS) Three elements of network communication Three elements overview, element 1: ...

Posted by rex9990 on Tue, 17 May 2022 01:52:38 +0300

SpringBoot integrated task Scheduler

SpringBoot integrated task Scheduler Basic steps Step 1: introduce pom dependency <!--Support task scheduling--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-quartz</artifactId> </dependency> Step 2: enable Task Scheduling Supp ...

Posted by denzlite on Tue, 17 May 2022 01:24:21 +0300

[Set framework] List, Set and Map

1, Basic points 1. A collection is similar to an array, but the number of elements in the collection can change dynamically Note: a collection can only store user-defined data types, not basic data types 2. Sets are divided into three categories List: the stored data can be repeated and in orderSet: the stored data is non repeatable and unor ...

Posted by my800stuff on Tue, 17 May 2022 01:13:38 +0300