Simple factory model of three factory models

1. Simple factory mode   1.1 meaning The simple factory pattern is also called the static method pattern (because the factory class defines a static method)In real life, factories are responsible for producing products; Similarly, in the design pattern, the simple factory pattern can be understood as a class responsible for production obj ...

Posted by Unholy Prayer on Fri, 19 Nov 2021 19:58:55 -0800

03-3 inter thread communication Object waitnotify

wait/notify wait notification method The wait notification mechanism is that the thread in the waiting state will be notified by other threads to obtain CPU resources again and continue to perform tasks that have not been completed before. The most typical example is the producer consumer model If the producer wants to add products to the q ...

Posted by altergothen on Fri, 19 Nov 2021 18:43:25 -0800

Spring Annotation Development

Catalog Spring Configuration Data Source Role of data sources (connection pools) Steps for developing data sources   Manual creation of data sources   Spring Configuration Data Source   Extract jdbc configuration file Spring Annotation Development Spring original annotations New Spring Notes   Spring Integrated Jun ...

Posted by phphelpme on Fri, 19 Nov 2021 17:41:43 -0800

Discrete Mathematics CAI Software-2. The first interface

First interface The previous article of this project wrote how to add a background picture to the GUI interface. Now use the background of the previous article to make the first interface of the project. And I also added various listener functions to the buttons on the interface. Development tool: ideaIU-2021.1.2 Development environmen ...

Posted by emcb_php on Fri, 19 Nov 2021 17:09:02 -0800

SpringMVC Silicon Valley Notes + Some Understanding Combined Notes

1. Introduction to Spring MVC 1. What is MVC MVC is the idea of a software architecture that divides software into models, views, and controllers M:Model, the model layer, refers to the JavaBean in a project and is used to process data JavaBean s fall into two categories: A class called entity class Bean: Stores business data specifica ...

Posted by robert_gsfame on Fri, 19 Nov 2021 15:42:04 -0800

Java learning 5 - Book self-study

Chapter VII         Features of Java language classes 7.1 private and public members of class 7.1.1 private members If there is no mechanism to restrict access to members in a class, it is likely to cause incorrect input. To prevent this from happening, the Java language provides the access control character private. Af ...

Posted by nalleyp23 on Fri, 19 Nov 2021 15:22:02 -0800

Springboot project practice

Newly learned knowledge points (1) Get data          Obtain web page json data according to Postman (F12)   ALL    ), Stored in IDEA and formatted by Ctrl+Alt+r           Before that, you need to replace the beginning {"ret":   0   "da ...

Posted by jkatcher on Fri, 19 Nov 2021 14:56:52 -0800

Practical application of domestic encryption: use SM3 salt to store the password, and use SM2 for login authentication

catalogue 1. Brief 2. Development environment and tools 3. Background password encryption 3.1 encryption code 3.2 SM3 encryption class (Sm3crypto) 3.3 state secret SM3 tools (Sm3Utils) 3.4 dependence package related to state secrets 4. Login authentication 4.1 front end key codes 4.2 key codes of backend login authentication 4.2.1.SM ...

Posted by Liz_SA on Fri, 19 Nov 2021 14:20:10 -0800

Actual combat of grain Mall - background and environmental preparation

Mall infrastructure diagram: Preparation of necessary components docker installation, sql,redis Each image of docker can be regarded as loading an application on a complete and independent Linux system. instructions For more detailed instruction learning, refer to: docker Instruction Learning docker images: view the installed i ...

Posted by elangsru on Fri, 19 Nov 2021 13:48:39 -0800

Why does the HashMap under the high parallel distribution have a dead cycle

preface    the deadlock problem in the case of HashMap concurrency exists in jdk 1.7 and before. jdk 1.8 has been repaired by adding loHead and loTail. Although it has been repaired, if concurrency is involved, it is generally recommended to use CurrentHashMap instead of HashMap to ensure that thread safety problems will not o ...

Posted by DeadFly on Fri, 19 Nov 2021 11:36:14 -0800