Detailed explanation of sharing element mode of design mode

Detailed explanation of sharing element mode of design mode 1, What is the meta model Flyweight Pattern, also known as lightweight pattern, is an implementation of object pool. Similar to thread pool, thread pool can avoid performance consumption by constantly creating and destroying objects. The number of objects is reduced to improve ...

Posted by Sphynx on Fri, 19 Nov 2021 11:29:00 -0800

Java basic syntax

Key points of Java basic syntax Type conversion 1. Basic data type Conversion In Java programs, the values of different basic data types often need to be converted to each other. The seven numeric types provided by java language can be converted to each other. There are two conversion methods for basic data type conversion: automatic typ ...

Posted by Kibeth on Fri, 19 Nov 2021 08:40:57 -0800

openLDAP win installation and deployment and java CRUD interface

catalogue summary testing environment setup script Configuration startup Client introduction Configuration of ldif file for multi-level DC java interface writing test [1] . overview What is LDAP? I won't talk about the concept here. There are many online searches. The focus of this paper is to introduce how to install and configure openLDAP ...

Posted by phpnoobie on Fri, 19 Nov 2021 07:49:31 -0800

javaWeb: Servlet from scratch

Servlet 1. The essence of Servlet Servlet is essentially a java interface. By implementing the servlet interface, the custom servlet class can accept the data submitted by the client, respond to the client's request and output information to the client. 2. Function Read explicit data sent by the client (browser). This includes HTML forms o ...

Posted by storyteller on Fri, 19 Nov 2021 07:30:21 -0800

Equality judgment of = = and equals, int and Integer in java

Equality judgment of = = and equals, int and Integer in java 1. The sentence "= = means comparison address and equals means comparison attribute" is wrong To demonstrate why it is wrong, consider a question: int a = 1; int b = 1; A = = is B true or false? According to the above words, the comparison is the address. Naturally, it ...

Posted by Ace_Online on Fri, 19 Nov 2021 06:35:49 -0800

java object-oriented -- package + inheritance + polymorphism

package Concept: It is a way to organize classes, which can ensure the uniqueness of classes create package Click new under src package and then package to create a package. Creating a new java class under the created package will create a class. matters needing attention: 1. Add a package statement at the top of the file to specify whic ...

Posted by hiberphoptik on Fri, 19 Nov 2021 05:25:26 -0800

juc concurrent programming learning notes (Shang Si Valley)

1. What is JUC 1.1 introduction to JUC JUC is short for Java. Util. Concurrent toolkit. This is a toolkit for processing threads. JDK 1.5 began to appear. 1.2 processes and threads Process is a running activity of a computer program on a data set. It is the basic unit for resource allocation and scheduling of the system and the basis of the ...

Posted by infyportalgroup on Fri, 19 Nov 2021 04:43:34 -0800

SpringBoot 2.X MongoTemplate group aggregation query

​ ​ 1 Summary How does MongoDB implement aggregate queries? Group query? Group paging query? User defined time interval query? Time format conversion query? Don't panic. This article will introduce the implementation of grouping and aggregation query of various dimensions based on SpringBoot 2.X MongoTemplate, and catch all the complex qu ...

Posted by nz_mitch on Fri, 19 Nov 2021 02:33:00 -0800

Spring Boot implements various parameter verification. It is well written. It is recommended to collect it!

Author: Wu Luqi\Source: https://juejin.cn/post/685654...I also wrote an article about the use of Spring Validation before, but I still feel superficial. This time I intend to thoroughly understand Spring Validation.This article will introduce the best practices and implementation principles of Spring Validation in various scenarios in detail!Pr ...

Posted by maddogandnoriko on Fri, 19 Nov 2021 01:42:26 -0800

If you ignore these details in Java programming, Bug will find you

Absrtact: in the daily programming of Java language, there are also details that are easy to be ignored, which may lead to various bugs in the program. This article is shared from Huawei cloud community< Summary of easily overlooked details in Java programming [run! Java] >, by Jack Wang CUMT. Various applications built by java langua ...

Posted by Beyond Reality on Fri, 19 Nov 2021 00:56:17 -0800