Common java array usage
1. Assignment
Two assignment methods
Static initialization: define the contents of the array directly from the beginning
Dynamic initialization: open up the space first, and then assign values later. You can not assign all values (at this time, the initial values are not assigned, such as 0 and null)
// statement
int[] ids;
//1.1 s ...
Added by dmort on Wed, 29 Dec 2021 09:38:56 +0200
Network programming self-made communication gadget (with source code)
catalogue
I. Introduction
Second, write source code
2.1 create server and client
2.3 create function
Three renderings
IV. summary
V. source code
I. Introduction
Readers can understand the code and self-made by mastering the basic knowledge of multithreading, io flow and network programming. It is very easy to understand and learn. T ...
Added by renob on Tue, 28 Dec 2021 13:59:45 +0200
Module hot replacement
1. Configuration structure dependency
Directory structure diagram
package. Dependencies in JSON
"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.15.0",
"babel-loader": "^8.2.2",
"clean-webpack-plugin": "^4.0.0-alpha.0",
"core-js": "^3.16.4",
"css-loa ...
Added by harmclan on Wed, 22 Dec 2021 19:04:37 +0200
Java Spring framework -- Introduction
catalogue
1. What is spring
2. Why use Spring?
3. Environmental construction
3.1. Create a java project and import the corresponding jar package
3.2. Create configuration file
3.3. Add corresponding modules
3.4. Hand over bean instantiation to Spring
3.5 testing
4. Injection by construction method
5. General attribute injection
6,sco ...
Added by h123z on Tue, 21 Dec 2021 02:41:46 +0200
Spring 05: Aspect Oriented Programming
1 definition of AOP
AOP (Aspect Oriented Programming) means: Aspect Oriented Programming, which realizes the unified maintenance of program functions through precompiled mode and runtime dynamic agent.
Aspect oriented programming is a supplement to object-oriented programming. It encapsulates the parts commonly called by each business mod ...
Added by BIOSTALL on Tue, 21 Dec 2021 02:29:14 +0200
JavaEE Beginner Level 4--Beginners must see
Long live your health and innocent business. Hello, I'm Laity and your brother J.
Introduction to JavaWeb
Use Java technology to solve the technology stack in the related web Internet domain (in fact, to develop a website)
Java has a long history with a wide range of api s. (Background Development Engineer major database and JavaWeb program ...
Added by Big_Rog on Sun, 12 Dec 2021 19:17:01 +0200
Thread Foundation (optimistic lock and pessimistic lock)
Pessimistic lock
When modifying a piece of data, in order to prevent others from changing the data at the same time, we can lock the data through the locking mechanism to prevent concurrency problems;
Threads think that thread security problems are easy to occur and lock the code.
Because the process of locking and releasing pess ...
Added by php_jord on Sat, 11 Dec 2021 10:04:25 +0200
Environment preparation of 30 classes for handwritten Spring core principles
This article is excerpted from Spring 5 core principles
1. Idea integrated Lombok plug-in
1.1 installing plug-ins
IntelliJ IDEA is an excellent integrated development tool with powerful functions and many plug-ins. Lombok is an open source code generation library and a very practical gadget. When editing entity classes, we can use Lombok a ...
Added by nexgen_x on Fri, 10 Dec 2021 05:47:54 +0200
Servlet - Tomcat installation, simple static resource correspondence, dynamic resource writing specification
Java learning punch in: days 90 and 91
javaWeb —JSP
Servelet
HTML+CSS and JavaScript were briefly introduced before, but only the interface problem can be solved. At that time, although it was mentioned that JSON can realize front-end and back-end interaction, JavaScript and java interaction, how the submitted form is sent to our ...
Added by Papalex606 on Thu, 09 Dec 2021 18:57:57 +0200
Java monitoring Basics - use JMX to monitor and manage Java programs
This article introduces the related concepts and specific usage of Java JMX technology.
1. What is JMX?
Java Management Extensions (JMX) technology is the standard function of Java SE platform. It provides a simple and standard way to monitor and manage resources. It gives a clear structure and design pattern for how to define a resource. ...
Added by kevingarnett2000 on Thu, 09 Dec 2021 15:29:45 +0200