2 annotation reflection and dynamic proxy

1.2 annotation reflection and dynamic proxy 1.2.1 reflection Reflective entry Java lang.Class Objects in daily development are divided into two types: basic type and reference type Basic type, (8 fixed) Integer: byte, short, int, long Decimal: float, do ...

Added by ionik on Sun, 13 Feb 2022 14:42:04 +0200

Day 16: string function

The content of these two days is becoming more and more difficult, and it takes more time to understand the implementation of functions. Although half of today's knowledge has been briefly mentioned before, it still takes some time to really master it. Find string length strlen String function with unlimited length strcpy strcat strcm ...

Added by phppssh on Sun, 13 Feb 2022 14:30:23 +0200

[classic example] binary tree recursive structure classic topic collection @ binary tree

Xiaobian has something to say: these topics are the understanding and application of the recursive traversal structure of binary tree, which are very classic topics. After doing a few steps, you will feel that at present, you can't run away from all the problems. Recursion is just to deal with the current node - it may be to do some oper ...

Added by auamy on Sun, 13 Feb 2022 14:22:02 +0200

From scratch, use Jenkins to build and publish Pipeline pipeline projects

1, Environment installation and deployment 1. Install JDK 2. Configure environment variables C:\Program Files\Java\jdk1.8.0_152\bin 3. Install and activate IDEA -javaagent:D:\IntelliJ IDEA\IntelliJ IDEA 2019.3.1\bin\jetbrains-agent.jar 4. Build a web project 5. Install tomcat server Configure the IDEA to reco ...

Added by Jamesm on Sun, 13 Feb 2022 14:17:09 +0200

Lock free concurrency of JUC (leguan lock)

1. Quote There are the following requirements to ensure account Thread safety of withdraw withdrawal method interface Account { /** * Get balance * * @return Integer balance */ Integer getBalance(); /** * withdraw money * * @param amount Withdrawal amount */ void withdraw(Integ ...

Added by volomike on Sun, 13 Feb 2022 14:10:52 +0200

ConcurrentHashMap of thread safety class

1. Overview As shown in the figure, thread safe collection classes can be divided into three categories Legacy thread safe collections such as Hashtable and Vector Thread safe Collections decorated with Collections, such as: Collections.synchronizedCollection Collections.synchronizedList Collections.synchronizedMap Collecti ...

Added by RobM on Sun, 13 Feb 2022 13:53:02 +0200

[VUE project practice] 36. User role assignment function

Continued< 35. Permissions under editing role (II)> In the previous article, we completed the effect of assigning new permissions to roles and saving them. In this article, we complete the function of assigning roles to users. 1, Complete the loading of the dialog box and the role to be assigned When we open the user list page (User.vue ...

Added by ihw13 on Sun, 13 Feb 2022 13:34:23 +0200

Buffer stream & conversion stream & sequence commutation

preface Java - IO stream Foundation Buffer stream Byte buffer stream: BufferedInputStream, BufferedOutputStreamCharacter buffer stream: BufferedReader, BufferedWriter The basic principle of buffered stream is that when creating stream objects, a built-in buffer array of default size will be created to reduce the number of system IO thro ...

Added by dnice on Sun, 13 Feb 2022 13:05:39 +0200

How to customize directive in vue

catalogue 1, What is a custom directive 2, How to customize instructions 3, Application scenario 1, What is a custom directive The in-line attributes at the beginning of v-are all instructions. Different instructions can complete or implement different functions. When performing bottom-level operations on ordinary DOM elements, custom ...

Added by bbreslauer on Sun, 13 Feb 2022 12:53:50 +0200

Interface idempotency verification (use interceptor + custom annotation + redis to solve the problem)

Concept: Idempotency, in popular terms, is an interface that initiates the same request multiple times. It must be ensured that the operation can only be executed once For example: Order interface, cannot create order more than oncePayment interface. You can only deduct money once for repeated payment of the same orderThe callback interface ...

Added by Devious Designs on Sun, 13 Feb 2022 12:52:29 +0200