LinkedList is 1000 times slower than ArrayList? (dynamic graph + performance evaluation)

Array and linked list are two kinds of data structures commonly used in the program, and they are also one of the interview questions often tested in the interview. However, for many people, they just vaguely remember the difference between them. Maybe they still don't remember it right. And every time they come for an interview, they have to r ...

Posted by nomis on Mon, 15 Jun 2020 07:07:42 +0200

2, End of spring AOP (in supplement...)

1, Basic source code analysis 1. Find the entrance Spring's AOP is started by accessing the BeanPostProcessor postprocessor 2.BeanPostProcessor BeanPostProcessor is embodied in the doCreateBean of IOC source code analysis, the latter sentence of populateBean Object exposedObject = bean; try { po ...

Posted by ghostrider1 on Sat, 13 Jun 2020 07:56:32 +0200

Java Functional Interface--Abstract Method Interface

1 Functional Interface Functional interfaces in Java refer to interfaces that have one and only one abstract method Functional interfaces, that is, interfaces for functional programming scenarios; while functional programming in Java is represented by Lambda, so functional interfaces are interfaces th ...

Posted by chris_s_22 on Sat, 13 Jun 2020 03:57:12 +0200

A small salary management system with JavaFX+SpringBoot + verification code function

1 General 1.1 INTRODUCTION A simple small salary management system, JavaFX + front-end Spring Boot, has few functions. It focuses on the UI and some logic of the front-end. The back-end is very simple. Main functions: User registration / login Verification code retrieve password Users modify information, modify Avatar Display salary in bar cha ...

Posted by poknam on Sat, 06 Jun 2020 12:10:57 +0200

Invalid pom file after idea clones project from git

Invalid pom file after idea clones project from git When your idea pulls projects from git, projects that are cloned for the first time often report that pom files are not in maven format: as shown in the following figure This is because Maven has not been set after getting down from git. Open File ...

Posted by crazylegseddie on Fri, 05 Jun 2020 10:15:17 +0200

Visitor mode of behavior mode

1 General Visitor pattern is a behavior pattern, which is not commonly used. It can separate the algorithmic logic acting on the object from the object itself. 2 visitor mode When we need to operate on a group of similar types of objects, we can maintain the operation logic within each object separately, but this violates the principle of singl ...

Posted by markl999 on Sun, 31 May 2020 11:54:48 +0200

IOC details of Spring (based on annotation)

concept IOC(Inversion of Control): the so-called inversion of control is that the application itself is not responsible for the creation and maintenance of dependent objects, and the creation and maintenance of dependent objects are in the charge of external containers. In this way, the application of ...

Posted by paulnaj on Sat, 30 May 2020 09:37:49 +0200

Install JDK and Tomcat on Linux (CentOS7.2)

1. Download related software JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Tomcat: http://mirrors.shuosc.org/apache/tomcat/tomcat-9/v9.0.2/bin/apache-tomcat-9.0.2.tar.gz 2. Install and configure JDK [root@JDK-Tomcat ~]# rpm -ivh jdk-8u151-linux-x64.rpm Add the followi ...

Posted by McManCSU on Fri, 29 May 2020 19:00:34 +0200

Environmental System Tuning

The following adjustments are made in the test environment, then the documentation is written. System tuning: 1. Kernel Parameter Adjustment additional net.ipv4.ip_local_port_range = 1024 65535 net.core.somaxconn = 2048 net.core.rmem_default = 262144 net.core.wmem_default = 262144 net.core.rmem_max = 16777216 ...

Posted by qadeer_ahmad on Tue, 26 May 2020 18:08:50 +0200

Implementing counters in Java multithreads using the JDK built-in tool class

Preface In the actual development process, we often encounter businesses that require multi-threaded concurrency. Finally, we need to summarize the tasks completed by each thread, but the main thread usually ends earlier than the sub-threads. If you want to wait for each sub-thread to finish before running the main thread, you need to identify ...

Posted by freedomclan on Mon, 25 May 2020 18:56:38 +0200