Java web core knowledge

Introduction to Java Web Web: global wide area network, also known as the world wide web (www), a website that can be accessed through a browser. JavaWeb: use Java technology to solve the technology stack in the field of web and Internet. B/S architecture: Browser/Server architecture mode. Its feature is that the client only needs a browser ...

Added by running_out_of_imagination on Sun, 27 Feb 2022 10:18:05 +0200

Source code analysis of Wait Notify NotifyAll of Object

The source code of Wait Notify NotifyAll in the Object class in Java is as follows: /** * Thread waiting * @param var1 millisecond * @param var3 nanosecond */ public final void wait(long var1, int var3) throws InterruptedException { if (var1 < 0L) { throw new IllegalArgumentException("timeout valu ...

Added by anon_login_001 on Sun, 27 Feb 2022 09:30:30 +0200

JVM -- garbage collection

2, Garbage recycling How to judge whether an object can be recycled Garbage collection algorithm Generational waste recycling Garbage collector Garbage collection tuning 1. How to judge whether an object can be recycled 1.1 reference counting method Disadvantages: 1.2 reachability analysis algorithm The garbage collector in Java v ...

Added by karthikeyan_coder on Sun, 27 Feb 2022 08:55:45 +0200

Redis cache breakdown, cache penetration, cache avalanche solution (with code)

In our daily use of redis development, cache penetration, breakdown and avalanche are unavoidable problems. It is also a question we are often asked during the interview. Next, we will explain a variety of solutions to these three kinds of problems. Buffer breakdown Cache breakdown means that a Key is very hot and is accessed with high ...

Added by mecha_godzilla on Sun, 27 Feb 2022 08:42:11 +0200

553. Optimal division / 150 Evaluation of inverse Polish expression

553. Optimal division [medium question] [daily question] Idea: [mathematical method] Let the optimal solution of dividing these n numbers be Fn=x/y. obviously, if the numerator is as large as possible and the denominator is as small as possible, the result will be the largest. Because nums are all positive integers greater than 1, the smal ...

Added by kkonline on Sun, 27 Feb 2022 07:39:33 +0200

day12_ Interface and polymorphism

Interface Overview Interface is a reference type in the Java language and a "collection" of methods. Therefore, the interior of the interface is mainly to define methods, including constants, abstract methods (JDK 7 and before), default methods and static methods (JDK 8), and private methods (jdk9). There can be no other members in t ...

Added by vocoder on Sun, 27 Feb 2022 07:21:24 +0200

SpringBoot learning notes 02

1. Details of springboot 1.1 environment switching explain: Software generally runs in many different environments There is a dev environment in the development phase Testing will be carried out after development There will be a test environment The final project is deployed to the user's service There will be a production environment   Qu ...

Added by conquest on Sun, 27 Feb 2022 05:48:55 +0200

Filter sensitive words using prefix tree

Filter sensitive words using prefix tree Introduction to prefix tree Prefix tree is also called word lookup tree, Trie tree , is a kind of tree structure , is a variant of hash tree. The typical application is to count, sort and save a large number of data character String (but not limited to string), so it is often used by search e ...

Added by quetz67 on Sun, 27 Feb 2022 05:37:12 +0200

RabbitMQ (introduction, concept, installation and springboot integration)

RabbitMQ (introduction, concept, installation and springboot integration) 1, MQ introduction In computer science, message queue (English: Message queue) is a way of communication between processes or between different threads of the same process. The storage column of software is used to process a series of inputs, usually from users. Messa ...

Added by webdes03 on Sun, 27 Feb 2022 04:59:11 +0200

SpringBoot learning note 09: the use of thmeleaf and simulated Login

Learn from: Shang Silicon Valley Simple usage of thymeleaf Generally used is @{}Use this expression when using links${}Use request domain, session domain and object equivalence Three not commonly used. *{},#{},~{}. If the variable is not in the tag, you need to use inline usage. You need to surround the expression with two brackets. Simula ...

Added by Master_Phantom on Sun, 27 Feb 2022 02:37:47 +0200