[Mybatis] explain the core configuration file

🌈 I'm lucky to meet you. I'm Xiao Xiang. Have a big factory dream, work hard! Come on, stranger! 🌈 ☁️ This article is the notes and experience of learning Mybatis from the crazy God of station B. if it is useful to you, thank you for your praise. The article inevitably has shortcomings. Please point out that I will correct it in time! T ...

Posted by vyb3 on Sat, 25 Sep 2021 11:44:36 -0700

Servlet (knowledge point + instance project)

Previous review 1. What is API: ① API is application programming interface; ② It includes source code, bytecode and help documents (note that the version number is consistent). 2.JavaSE and JavaEE: ① JavaSE: <1> Javase is the standard version of java and has a set of basic class libraries; <2> The source code is sto ...

Posted by Dale_G on Mon, 20 Sep 2021 11:38:53 -0700

06_ Data type conversion

Chapter 6 data type conversion Author: Zhang Zimo Java programs require that the data involved in calculation must be consistent in data types. If the data types are inconsistent, type conversion will occur. 1, Automatic conversion What data type will result from the addition of an int variable and a byte variable?  int i = 1;  byte b = 2; ...

Posted by sparq on Mon, 20 Sep 2021 10:39:43 -0700

Making warehouse management system software with python

Making warehouse management system software with python 1: System test run ——Inventory information management system -- |1: add product information |2: product information report |3: add shelf position |4: shelf position report |5: commodity warehousing management |6: Commodity issue management |7: commodity inventory information ...

Posted by wanda46 on Mon, 20 Sep 2021 01:55:45 -0700

Use priority_queue implements a small top heap timer

Timer module design 1 Introduction to timer module Timer module is a common component in the server. This paper takes you to implement a timer module with basic functions To design a Timer module, it generally includes two parts: one is the Timer object (Timer), and the other is the manager (TimerManager) who manages the Timer object (also k ...

Posted by batfink on Sun, 19 Sep 2021 13:36:22 -0700

[Java Tutorial] detailed explanation of connection pool and DBUtils package

JDBC connection pool summary The creation and destruction of Connection objects for one-time use takes time. Connection pool can reuse connections and avoid waste. When the program initializes, it initializes multiple connections and puts them into the pool (Collection). Each time, it can be obtained directly from the connection pool. After u ...

Posted by .-INSANE-. on Fri, 10 Sep 2021 12:35:34 -0700

Java Anonymous Internal Class and Lambda Expression

1. Java Anonymous Internal Class There are several important points to remember when using anonymous internal classes: (1) Anonymous inner classes cannot have constructors. (Because anonymous inner classes have no class names) (2) Anonymous internal classes cannot define any static members, methods, and classes. (3) An anonymous internal c ...

Posted by mdj on Fri, 10 Sep 2021 10:06:55 -0700

Java advanced: multithreading 1, wake up

SecondThread sec = new SecondThread("zs"); SecondThread thr = new SecondThread("lsii"); //Set sec and thr threads as daemon threads sec.setDaemon(true); thr.setDaemon(true); //Start sec.start(); thr.start(); //When it is found that sec and thr are daemon threads, it will be interrupted * **Interrupt thread**: `public void interrupt()`: This ...

Posted by jllydgnt on Thu, 09 Sep 2021 19:36:43 -0700

In the actual battle of MySQL, the experience of using Insert statement is summarized, and Java development starts from scratch

======================================================================= []( )2-1. Three treatment methods []( )2-1-1. Single loop insertion We take 10w pieces of data for some tests. If the insertion method is program traversal loop, insert one by one. It is detected that the speed of inserting a message on mysql is between 0.01s and 0.0 ...

Posted by tmswenson on Thu, 09 Sep 2021 14:47:19 -0700

Using the plug-in mechanism of Hystrix, the world's hottest programmer learning route

Find expansion port Take a closer look and see when the thread pool was created? The entry is shown in the figure below. Each time a new HystrixCommand is created, the constructor of the parent class will be called: As shown in the figure above, the initThreadPool will create a thread pool. It should be noted that the first argument here, ...

Posted by tcarnes on Wed, 08 Sep 2021 13:41:13 -0700