23 design patterns to help you write beautiful code gracefully
The principle or source code of each technology stack we usually use is more or less related to the concept of design patterns. It can also be said that only by better mastering design patterns, our code can be more standardized, concise and more efficient.
Secondly, most of the design patterns are repeatedly summarized through the experience ...
Added by robogenus on Wed, 15 Dec 2021 13:22:35 +0200
Use spring security in Java and stay up late to sort out Java high-frequency interview questions
Other jar s in spring security provide other advanced authentication technologies, such as LDAP authentication, OpenID authentication, implementation options in authentication, etc. But here, I'll focus on Web application authentication.
In the servlet configuration xml file or application context xml, you need to specify the following URL in ...
Added by AceOfJames on Wed, 15 Dec 2021 09:40:55 +0200
Mybatis framework technology summary, how to write efficient SQL
3.3,SqlSessionFactory
SqlSessionFactory has multiple methods to create SqlSession instances, including the following two:
SqlSessionFactory.openSession: a transaction will be started by default, but the transaction will not be submitted automatically, which means that the transaction needs to be submitted manually before the update operati ...
Added by chodges on Wed, 15 Dec 2021 08:33:06 +0200
Pygame actual combat: the classic bubble dragon game popular all over the world is coming. Will you like it? (source code attached)
Introduction
There are still many elimination games in Python, and mumuzi has pushed many before~
๐ Source base ๐โโ Click on my avatar in the upper right corner of the home page and get the source code for free ๐ The source code of previous periods is also dropping ๐
For example, the ever-changing Xiaole, remember? Today, ...
Added by Gruzin on Wed, 15 Dec 2021 04:31:43 +0200
Introduction to MySQL, written test for Java development engineers
1, Database operation
===========================================================================
Note that each time the client inputs a statement, it must be added;
1.1 display database
show databases;
1.2 create database
--format create database [Database name];
create database test;
Note: you cannot create a database ...
Added by sir nitr0z on Wed, 15 Dec 2021 03:56:17 +0200
MyBatis - underlying source code analysis - (detailed), Java development for three years, the monthly salary is only 12K
} else {
/**
* The following code shows that only one of the three attributes of url resource class can be selected, otherwise an error will be reported
*/
throw new BuilderException("A mapper element may only specify a url, resource or class, but ...
Added by JoCitizen on Wed, 15 Dec 2021 02:39:38 +0200
R2DBC, the most complete BAT interview questions sorting
The term "reactivity" refers to the programming model built around responding to change, availability, and processability - network components respond to I/O events, UI controllers respond to mouse events, resources are available, and so on. In this sense, non blocking is reactive because we are now in the mode of responding to notifi ...
Added by Edd on Wed, 15 Dec 2021 00:19:19 +0200
Kotlin coprocessor and operator overloading, sorting out interview questions for Senior Java engineers
for (i in 0..10) {
println("Asynchronous request executing: getToken :$i")
delay(100)
}
return "ask"
}
suspend fun getResponse(token: String): String { for (i in 0...10) { println("asynchronous request executing: getresponse: $token $I") delay(100) }
return "response"
}
fun setText(response: String) { printl ...
Added by CKPD on Wed, 15 Dec 2021 00:08:02 +0200
Don't you understand java collections? Don't learn programming if you don't understand this article. Interview skills for Java engineers
### [] () * * [key points]**
**Collection: Disordered, repeatable**
**List Series collection: ordered, repeatable, indexed.**
โ ArrayList: The added elements are ordered, repeatable and indexed
โ LinekdList: The added elements are ordered, repeatable and indexed
**Set Series collection: the added elements are unordered, non re ...
Added by Eman on Wed, 15 Dec 2021 00:05:41 +0200
Comprehensive summary of Java annotations, original by Ali experts
=====
@Target
It is added to the Annotation through @ target to explain the object scope modified by Annotation: Annotation can be used for packages Types (classes, interfaces, enumerations, Annotation types), type members (methods, construction methods, member variables, values), method parameters and local variables (such as loop variable ...
Added by Charles256 on Tue, 14 Dec 2021 23:37:39 +0200