The static keyword can modify member variables and member methods
static member belongs to class It can be accessed through the class name, and is generally modified with public classname.propertyname; classname.methodname(); can also be accessed by object name (not recommended)
Posted by ess14 on Wed, 31 Aug 2022 03:28:19 +0300
Motivation and preparation
Apache Commons It is a large and rich set of tool libraries. I first came into contact with this code base when I participated in a Java project a few years ago, and it is now a must-have tool for developing Java/Scala projects.
I am currently mainly using commons lang3 . This repository contains several extensions ...
Posted by KindredHyperion on Mon, 29 Aug 2022 02:59:05 +0300
Redis advanced practice
Comparison between redis and mysql redis slow log queryredis high availability and cluster
redis master-slave replication
Synchronization mechanism**Master slave replication principle****Command propagation**SYNC and PSYNCConsistency of redis replication ...
Posted by ben2.0 on Sat, 27 Aug 2022 14:01:57 +0300
1. Introduction of Reflection
2. Steps for using reflection
1. Get byte code object
1.1 What is a byte code object
3 ways to get byte code objects
2. Get construction methods, member methods, properties from byte code files
2.1 Get the construction method (Constructor class type)
2.2 Get Member Method (Method Class Type ...
Posted by ozzysworld on Fri, 26 Aug 2022 21:39:14 +0300
1, Specific contents
1.1 concept of polymorphism
1.2 polymorphic requirements
1.3 implementation steps of polymorphism
1.4 definition of polymorphism
2, abstract class
2.1 abstract concepts
2.2 abstract method
3.1 concept of interface
3.2 definition and use of interface
3.3 contents of interface ...
Posted by ramu_rp2005 on Thu, 25 Aug 2022 09:59:23 +0300
ApiFormatMd lightweight Java interface document generation tool
Execute Java code completely based on native code without reference to additional dependenciesGenerate MarkDown format documents. You can use ShowDoc to generate online documents
Author = 'River fire is like a firefly' (corre ...
Posted by maseeha on Wed, 24 Aug 2022 07:29:09 +0300
Spring Boot version
The version of Spring Boot on which this article is based is 2.3.4.RELEASE.
What is an interceptor?
Interceptor in Spring MVC is similar to Filter in Servlet. It is mainly used to intercept user requests and handle them accordingly. For example, the interceptor can perform permission verification, log the request informat ...
Posted by ghurtado on Tue, 23 Aug 2022 04:29:05 +0300
1. Overview of polymorphism
1.1 What is polymorphism
Objects of the same type perform the same behavior and exhibit different behavioral characteristics;
1.2 Common forms of polymorphism
Parent type object name= new subclass constructor; Interface object name= new implementation class constructor;
Member Access Characteristi ...
Posted by Ryokotsusai on Sun, 21 Aug 2022 23:10:31 +0300
Custom class enumerationImplementation using enum keyword
Custom enumeration class code
Constructor privatization to prevent direct newRemove the set related method to prevent the property from being modifiedCreate fixed objects directly in SeasonTo prevent the static method of the class from being loaded every time the pr ...
Posted by BooRadLey on Sun, 21 Aug 2022 09:29:12 +0300