JAVA learning 10-29 -- rewriting, super, polymorphism

Method override 1. Override: after a subclass inherits the parent class, it can override the methods in the parent class.2. Application: after rewriting, when a subclass object is created and a method with the same name and parameter in the child parent class is called through the subclass object, the method of overriding the parent class by t ...

Posted by f1nutter on Fri, 29 Oct 2021 05:34:12 -0700

Database connection pool C3P0: database connection pool technology Druid: database connection pool implementation technology spring JDBC

Database connection pool Concept: in fact, it is a container (Collection) for storing database connections After the system is initialized, the container is created, and some connection objects will be applied in the container. When the user accesses the database, the connection objects will be obtained from the container. After the user ...

Posted by jrws on Fri, 29 Oct 2021 04:34:14 -0700

JDK growth 19: AQS underlying principle of reenranstlock locking into the team

home pagespecial columnjavaArticle details0JDK growth 19: ReenranctLock (2) AQS underlying principle of locking into the teamLuxuriant Published 16 minutes agoIn the previous section, you should have learned about the three AQS based widgets state, owner and queue at the bottom of ReentrantLock. We also learned about the process of locking and ...

Posted by darkside_3k on Fri, 29 Oct 2021 04:10:37 -0700

spring notes learned but not understood

Reading notes on the core principles of spring 5 and handwriting practice of 30 classes catalogue PART1 is written in front of the nonsense PART2 software architecture design principles PART3 is an example of refactoring code PART1 is written in front of the nonsense The example in the article is adapted and simplified to the original ...

Posted by netrepsa on Fri, 29 Oct 2021 03:26:52 -0700

5-2 application of blocking queue - producer consumer

1 false Awakening What is false awakening? Refer to a question and answer on the Internet: Question: what are the reasons for false wakeup in java multithreading? The definition found on the Internet means that the thread wakes up without calling notify() and notifyAll(), which is a false wake-up. What causes this? Answer: spurious wakeup ...

Posted by T.Stedel on Fri, 29 Oct 2021 02:59:14 -0700

You must not know the usage of Unsafe

What is Unsafe First of all, we say that the unsafe class is located under the sun.misc package in rt.jar. Unsafe translation is unsafe. This does not mean that this class is unsafe, but that it is unsafe for developers to use unsafe, that is, it is not recommended for developers to use unsafe directly. And there is no unsafe source code in th ...

Posted by Nightslyr on Fri, 29 Oct 2021 01:30:32 -0700

A diagram to thoroughly understand the Spring circular dependency

1 what is circular dependency? As shown in the figure below: BeanA class depends on BeanB class, and BeanB class depends on BeanA class. This dependency forms a closed loop, which we call circular dependency. Similarly, see the following figure: In the above figure, BeanA class depends on BeanB class, BeanB class depends on BeanC class, and B ...

Posted by Johntron on Fri, 29 Oct 2021 00:07:41 -0700

Image building without Dockerfile: BuildPack vs Dockerfile

In the past work, we have built a technical platform using microservices, containerization and service choreography. In order to improve the R & D efficiency of the development team, we also provide a CICD platform to quickly deploy the code to the Openshift (enterprise class Kubernetes) cluster. The first step of deployment is the contain ...

Posted by webbwbb on Thu, 28 Oct 2021 23:19:49 -0700

Maven installation and configuration

install Download: http://maven.apache.org/download.cgi Generally, zip: After downloading, select a path to unzip (unzip to a non Chinese file directory) Enter environment variable I don't know how to enter. Refer to my Java installation blog Add maven path to path cmd validation, enter mvn -version Configure local and private warehouses ...

Posted by mellis95 on Thu, 28 Oct 2021 22:50:27 -0700

Analyze java assembly instructions through javap command

1, javap command Brief javap is the jdk's own anti parsing tool. Its function is to inverse parse the code area (assembly instruction), local variable table, exception table, code line offset mapping table, constant pool and other information corresponding to the current class according to the class bytecode file. Of course, some of these info ...

Posted by nick_whitmarsh on Thu, 28 Oct 2021 22:29:38 -0700