SSM integration -- crazy God said Java learning notes
SSM integration
Bili Bili crazy God says Java learning website The article is only for sharing learning experience and reviewing. It is more effective to check the formal video website and official documents
Make a book query project using SSM framework
Simple core axis of the project
The eclips e development tool I use may be differen ...
Posted by omidh on Mon, 29 Nov 2021 11:02:43 -0800
JDBC connection pool
preface
Better manage the connection with the database, avoid memory leakage and server crash due to too many connections, and reduce resource consumption.
1, Database connection pool
1. The necessity of JDBC database connection pool
When developing web programs based on database, the traditional mode basically follows the followi ...
Posted by plodos on Mon, 29 Nov 2021 10:17:24 -0800
[Android View] custom ViewGroup -- implementation of horizontal page turning view HorizontalView inherited from ViewGroup
Custom viewgroups can be divided into three categories according to their parent classes: inherited from ViewGroup, inherited from system specific ViewGroup (such as LinearLayout) and inherited from View. The second is the simplest and the third is the most complex. Let's focus on the first case with moderate difficulty.
target
Follow ViewPag ...
Posted by chugger93 on Mon, 29 Nov 2021 09:36:39 -0800
Tagging education re learning data structure and algorithm 13 | sorting: Principle Analysis and advantages and disadvantages comparison of classical sorting algorithm
Learning resources: Pull hook Education
What is a ranking problem
Sorting - the process of turning a group of unordered data into order. Generally, the order here is from small to large by defaultMeasure the advantages and disadvantages of a sorting algorithm
Time complexity - specifically, the best time complexity, the worst time complexi ...
Posted by barnbuster on Mon, 29 Nov 2021 07:52:34 -0800
Mybatis uses @ Insert annotation to Insert multiple records. Several methods of JSONObject to List
Mybatis inserts multiple records using the @ Insert annotation
Several methods of converting JSONObject to List
In a large software engineering job, if an administrator wants to send messages to multiple users, the front end needs to send an array with user numbers to the back end. Here is a summary of several methods for the back-end to rece ...
Posted by mzfp2 on Mon, 29 Nov 2021 07:27:19 -0800
demo demonstration of spring clound Alibaba learning 02 Nacos service registration and discovery
1, Create local project
Because microservice is an aggregate project, we need to create a blank folder locally as the local project workspace. All project modules are in the workspace. Remember that it must be a blank folder without anything in it or any Chinese on the pathOpen idea, select file - > open, go in and select the newly crea ...
Posted by fernado1283 on Mon, 29 Nov 2021 05:57:48 -0800
Instance and initialization of Spring source code parsing
pojo
package com.kuang.pojo;
public class Hello {
private String str;
public String getStr() {
return str;
}
public void setStr(String str) {
this.str = str;
}
@Override
public String toString() {
return "Hello{" +
"str='" + str + '\'' +
'}';
}
}
xml ...
Posted by newcastle_unite on Mon, 29 Nov 2021 05:54:00 -0800
What if Lambda is slow to use for the first time? Look at the magic weapon
Don't say much about the description. Go directly to the figure above:
See the output? Why is the time difference between the first time and the second time so much? Let's think about it together. We can also look at the conclusion first and then look back at the analysis
Note: not only the second time, but every time after the first t ...
Posted by phprocky on Mon, 29 Nov 2021 04:34:09 -0800
SpringBoot integrates JUnit, Mybatis, Mybatis plus and Druid
Integrate JUnit
@SpringBootTest defines that Springboot04JunitApplicationTests is a Test class that supports injecting objects. Once injected, this object can participate in @ Test. Name: @ SpringBootTest Type: test class annotation Location: above the test class definition Function: set the spring boot startup class loaded by JUnit example: ...
Posted by scialom on Mon, 29 Nov 2021 03:56:03 -0800
Self use Java learning (multithreading advanced)
Thread pool [understand]
Status of the thread
NEW Threads that have not yet started are in this state. RUNNABLE The thread executing in the Java virtual machine is in this state. BLOCKED A thread that is blocked and waiting for a monitor lock is in this state. ...
Posted by mikew2 on Mon, 29 Nov 2021 03:43:48 -0800