Compile JDK18 based on Linux

1. Overview JDK hasn't been compiled manually, dare you say you're a Java programmer? (Brother By Sheep- JDK hasn't been compiled manually, dare you say you're a Java programmer? Actual Compile Java Source (JDK Source, JVM) Video Tutorial_ Bell-Bell-Bell_ bilibili) Compiling JDK by hand is theoretically a better JDK for your computer Maybe it ...

Added by blacksheepradio on Thu, 10 Mar 2022 20:22:52 +0200

Using invariance to solve concurrency problem

Using invariance to solve concurrency problem Invariance pattern We know that concurrency is the most likely cause of thread insecurity. The main reason is that there is data competition. If multiple threads read only and do not modify the same variable, there will be no thread safety problem. This idea is actually very simple, but it is also ...

Added by keevitaja on Thu, 10 Mar 2022 18:48:14 +0200

javaEE(SSM)-4: dynamic SQL

title: javaEE(SSM) learning notes 4: dynamic SQL Dynamic SQL import [main function]: splice SQL clauses according to different conditions or different data to achieve similar programming effect in XML files. [main element (mark)]: Query criteria: single branch if; Multi branch choose... when... other Special treatment: where /trim Up ...

Added by Benjigga on Thu, 10 Mar 2022 18:34:12 +0200

Jvm class loading mechanism

Operation process of class Take a main method as an example: The specific process of class loading is as follows: 1. Load: load the class bytecode file into memory through the class loader 2. Verification: verify whether the bytecode file conforms to the jvm specification 3. Preparation: assign initial values to static variables For example, ...

Added by psquillace on Thu, 10 Mar 2022 16:32:52 +0200

How to design a secure external interface, the old programmer summarized these points

Source: blog.csdn.net/xiaolizh/article/details/83011031 Bloggers have previously worked in the collection and payment system of Hengfeng Bank (equivalent to payment interface), including the current OLTP API transaction interface and the external data interface of virtual business. In short, when you have done a lot of projects and written a l ...

Added by Mikester on Thu, 10 Mar 2022 15:14:44 +0200

A Redis production accident cost the company millions

1, Antecedents There is a core project of the company. The client of redis has always used jedis. Later, the technical director asked to replace the jedis client with a more efficient lettuce client, and use the RedisTemplate class of spring framework to operate redis. However, the world is unpredictable. It is such a simple demand that makes ...

Added by HAVOCWIZARD on Thu, 10 Mar 2022 14:48:00 +0200

Design pattern - creation pattern - factory pattern (simple factory, factory method, abstract factory)

Factory Pattern provides the best way to create objects. We don't have to care about the creation details of objects, we just need to obtain different products according to different situations 1. Factory simple mode In the simple factory pattern, the method used to create instances is usually static, also known as static factory pattern. It ...

Added by wompas.dub on Thu, 10 Mar 2022 14:34:34 +0200

Spring boot enables dynamic loading of remote configuration files

demand There is an independent API project, which mainly provides API interfaces for external systems. In order to ensure the security of the call, the request needs to be verified, including the call frequency, access IP, cross domain and Token. The IP and cross domain configuration will be modified according to the receiver, In order to avoi ...

Added by Transwarp-Tim on Thu, 10 Mar 2022 14:15:27 +0200

About [pit avoidance description of precision loss during serialization and deserialization]

        1. background When the two sides interact with each other through the HTTP network protocol, the sender often serializes the Json object data into a string (ObjectMapper.writeValueAsString(Object value)), while the receiver often deserializes the received string data into a Json object (object ...

Added by Syntac on Thu, 10 Mar 2022 12:31:48 +0200

Spring series 20: annotation explanation and spring annotation enhancement (basic internal skill)

Some small partners reported that annotations are widely used in annotation based Spring, which is a little uncomfortable because they are not familiar with Java annotations. It is suggested to summarize the basic knowledge of a Java annotation, then it comes! Content of this article What is annotation? How to define annotations How to use ann ...

Added by bouwob on Thu, 10 Mar 2022 10:13:00 +0200