Mybatis notes of the eight part script
Recently, I went out for an interview and wrote some technical points about Mybatis in my resume, so the interviewer began to ask me constantly. This article specially records some problems encountered in the interview.
What is Mybatis
Mybatis is a persistent SQL framework that encapsulates SQL to a certain extent. It encapsulates the commonl ...
Posted by feliperal on Sun, 13 Feb 2022 15:27:10 +0100
[daily problem] Li Kou - game 280 (I really didn't know how to solve other people's problems so succinctly)
โญ New pit in winter vacation -- daily question notes of code Fox ๐ข The winter vacation is about to expire ๐ข
6007. Maximum sum of array - Hard - game 280 weekly question 4
Give you an integer array nums with length N and an integer numSlots, satisfying 2 * numSlots > = n. There are a total of numSlots baskets numbered 1 to numSlots.
Y ...
Posted by andrewgauger on Sun, 13 Feb 2022 15:18:17 +0100
How can concurrent locks protect multiple resources
Concurrent locks protect multiple resources
For mutexes, the relationship between protected resources and locks is generally many to one, so how to use a mutex to protect multiple resources?
First, you need to distinguish whether there is an association between multiple resources.
There is no association between multiple resources
There is ...
Posted by davieboy on Sun, 13 Feb 2022 14:39:51 +0100
I Build a simple microservice project
I Build a simple microservice project
1. Evolution from monomer architecture to microservice architecture
The single architecture we first came into contact with has only one project for the whole system. The packaging is often made into a war package and then deployed to a single tomcat. This is the single architecture, as shown in the figur ...
Posted by NathanLedet on Sun, 13 Feb 2022 14:16:56 +0100
[jsp] [multi word and multi picture] [learning notes] Java Web Learning Trip in winter vacation 1.4
Today, all the train tickets have been bought. I feel closer and closer to Xiagong ๐ค๏ผ Yada ๐ญ๐ญ๐ญ๐ญ๐ญ
1. jsp first entry
1.1. What is jsp
1. The full replacement of jsp is java server pages, which is the server page of Java 2. The main function of jsp is to return the data of html page instead of Servlet program 3. Because it is very com ...
Posted by tomtomdotcom on Sun, 13 Feb 2022 13:34:47 +0100
CGLIB dynamic agent -- example / principle
Original website:
brief introduction
explain
This article introduces the usage of CGLIB dynamic agent with examples.
principle
CGLIB implements proxies for classes.
The principle is to generate a subclass of the specified target class and override its methods to achieve enhancement. However, because inheritance is adopted, the class mod ...
Posted by FrankA on Sun, 13 Feb 2022 13:06:01 +0100
Deep understanding of JVM virtual machines
JVM learning
This article is based on JVM [produced by dark horse programmer] Notes made during instructional video learning
1, What is a JVM
definition
Java Virtual Machine, the running environment of JAVA program (the running environment of JAVA binary bytecode)
benefit
Write once and run everywhereAutomatic memory management, garbage c ...
Posted by immot on Sun, 13 Feb 2022 11:46:53 +0100
RabbitMQ unfair distribution and prefetching (channel.basicQos)
Qos (Quality of Service) concept:
When the network is congested, all data streams may be discarded; In order to meet the requirements of users for different applications and different service quality, the network needs to be able to allocate and schedule resources according to the requirements of users, and provide different service quality ...
Posted by ajfton on Sun, 13 Feb 2022 10:17:55 +0100
Analysis of string splicing in Java code
The string splicing methods discussed in this paper are as follows: "+" sign, StringBuilder, StringJoiner and String#join, which are compared and analyzed to explore the best practices.conclusionThe following content is boring, so let's start with the conclusion:The string splicing methods discussed in this paper are as follows: " ...
Posted by direland on Sun, 13 Feb 2022 09:49:25 +0100
Let's talk about the synchronized keyword
Basic use of synchronized
Object lock
Custom object lock
/**
* Object lock example 2
*/
public class SyncObjLock2 implements Runnable{
private static SyncObjLock2 instance=new SyncObjLock2();
private Object lock1=new Object();
private Object lock2=new Object();
/**
* You can see that using sync will cause threads to ...
Posted by mandukar on Sun, 13 Feb 2022 09:43:53 +0100