Implementation of train booking platform management system based on Java+SpringBoot+vue+element

๐Ÿ… Author profile: CSDN invited author โœŒ, Blog expert โœŒ, High quality creators in java field ๐Ÿ’ช ๐Ÿ… Pay attention to the official account [java Li Yang Yong] resume template, learning materials, interview questions library, etc. ๐Ÿ’ช ๐Ÿ… Get the source code at the end of the article ๐Ÿ… Preface introduction: With the continuous popular ...

Posted by Lytheum on Sat, 26 Feb 2022 04:39:36 +0100

Interview question: to realize a deadlock (Java version), the four necessary conditions for deadlock generation, how to avoid deadlock and how to solve deadlock

Implement the simplest deadlock (Java version) ```java /** * @author wall * @date 2019/7/29 16:42 * @description Implement A deadlock: thread A obtains the lock held by thread B, and thread B obtains the lock held by thread A */ public class DeadLock { //Define two locks private static ReentrantLock lockA = new ReentrantLock(); ...

Posted by Gen-ik on Sat, 26 Feb 2022 03:32:53 +0100

Use and understanding of generics

1. What makes generics? 2. Why use generics? 3. How to use generic [class, interface, method] 4. Limitations of generics. What makes generics? ย 1. Generic: when a class is defined, it does not set the data type for the attribute and method [return value, parameter] in the class. When you create an object of this class, you specify t ...

Posted by cape on Sat, 26 Feb 2022 02:36:14 +0100

log4cpp source code reading: threading tool class

threading namespace Location: in the include/log4cpp/threading directoryThe corresponding classes are under the threading namespace. This namespace contains some thread synchronization classes and methods to get the current thread. There is also an implementation of thread scoped local variablesBecause thread is a system kernel object, and dif ...

Posted by spambadger on Fri, 25 Feb 2022 17:44:14 +0100

Java ~ inheritance and polymorphism

catalogue inherit Concept of inheritance Inherited syntax Access to parent class members super keyword The difference between super and this Execution order and inheritance mode of inheritance relationship Polymorphism Implementation conditions of polymorphism rewrite The difference between rewriting and overloading Upward and downw ...

Posted by rivasivan on Fri, 25 Feb 2022 17:06:17 +0100

Familiar with common classes

Hello, everyone! I'm Xiao Sheng! I learned the knowledge of classes and objects from Mr. Han Shunping and gained a lot! Now let's share our notes! Common class Wrapper class Classification of packaging PackagingBasic data typeDirect parent classbooleanBooleanObjectcharCharacterObjectbyteByteNumbershortShortNumberintIntNumberlongLon ...

Posted by chen2424 on Fri, 25 Feb 2022 16:44:30 +0100

Java priority queue

Java priority queue Introduction to PriorityQueue PriorityQueue is the priority queue. Priority queue can ensure that the elements taken out each time are the smallest or largest elements in the queue (Java priority queue defaults to the smallest element taken out each time). Size relationship: the comparison of elements can be naturally ...

Posted by eraxian on Fri, 25 Feb 2022 16:41:42 +0100

Introduction to Minio, stand-alone and cluster deployment, JAVA upload and download practice

Official website address https://min.io/ Official website document https://docs.min.io/docs/minio-quickstart-guide.html Download address https://dl.min.io/ Basic concepts Object: the basic object stored in Minio, such as file and byte streamBucket: the logical space used to store objects. The data of each bucket is isolated from each oth ...

Posted by stueee on Fri, 25 Feb 2022 16:31:59 +0100

Initialization loading of IOC container based on Xml

The following is the initialization loading of IOC container based on Xml. Please refer to the previous article for the positioning of the container Initialization of IOC container based on Xml (I) positioning 3. Start The spring IOC container loads Bean configuration resources from the refresh () function. Refresh () is a template method tha ...

Posted by seavers on Fri, 25 Feb 2022 15:45:14 +0100

Feign remote call lost request header

In business, you need to use modules A and B, which use spring Session to share Session data. The business in module B can only be operated after the user logs in. When A calls B's service, it cannot obtain the user's Session information in module B, resulting in module B determining that the requesting user has not logged in, resulting in modu ...

Posted by receiver on Fri, 25 Feb 2022 15:22:46 +0100