General mapper learning notes
General Mapper notes
Build development environment (spring boot)
Database tableImport dependency
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper</artifactId>
<version>4.0.4</version>
</dependency>
To configure
server:
port: ...
Posted by LightningSt on Wed, 12 Feb 2020 22:45:27 -0800
The book management system of Java practice (swing version) - other interfaces and function realization
Summary of this section
This section mainly realizes the final function of the software and some summary of the project.
About the function of software
The function of the software is to pop up a dialog box, tell the user some information about the software, and use the JDialog of swing to comp ...
Posted by opalelement on Tue, 11 Feb 2020 09:50:28 -0800
Simple login case
preparation:
Import the required jar package, import it into the lib package under the web directory and WEB-INF directory, and add it into the module
The following picture:Configuration database file druid.properties
driverClassName=com.mysql.cj.jdbc.Driver
url=jdbc:mysql:///Day14 you can create your o ...
Posted by Lukey on Sun, 09 Feb 2020 07:52:08 -0800
JDBC operation database and difference among statement, preparedStatement and callableStatement
The database can be operated easily by Java using JDBC API. In java8 and later, JDBC ODBC bridge connections have been dropped. For different databases, download the driver to the corresponding official website.
Here are three common database driver names, driver class and corresponding connection strin ...
Posted by spiceweasel on Fri, 07 Feb 2020 01:45:48 -0800
Including source code analysis, in-depth Java thread pool principle
From the pool technology to the bottom layer implementation, an article takes you through the thread pool technology.
1. Introduction to pool technology
In the process of system development, we often use pooling technology to reduce system consumption and improve system performance. In the field of prog ...
Posted by adren on Thu, 06 Feb 2020 23:46:43 -0800
Spring Road (40) - declarative transaction management with @ Transactional is so simple
Simple enough
To be honest, to implement transaction management and add an annotation to a method, the method automatically implements transactions, which is simple enough. I can't think of anything simpler.
This annotation is @ Transactional, which is so excellent. Declarative transaction management ...
Posted by Hi I Am Timbo on Thu, 06 Feb 2020 01:37:05 -0800
MyBatis interface binding and multiparameter
Article Directory
MyBatis Interface Binding Scheme and Multi-parameter Passing
map mode for multiparameter transfer
Interface Binding
Interface for multiparameter delivery
MyBatis Interface Binding Scheme and Multi-parameter Passing
In addition and deletion checks of MyBatis, it is found that ...
Posted by TRB on Tue, 04 Feb 2020 19:39:38 -0800
Spring batch batch processing framework + mysql warehouse + web monitoring record
1, concept
Spring Batch is a lightweight batch processing framework suitable for enterprise applications. It is worth noting that unlike other scheduling frameworks, Spring Batch does not provide scheduling functions.
2. Batch process
Batch processing can be divided into the following steps:
Read data
Process data according to business
The pr ...
Posted by KindredHyperion on Tue, 04 Feb 2020 05:05:24 -0800
Spring basic course 11: Spring transaction management
Database transactions
A series of database operations with ACID characteristics realized by database, a refers to atomicity, C refers to consistency, I refers to isolation, and D refers to persistence;
Atomicity refers to that the operation within a transaction is a whole and cannot be subdivided; ...
Posted by Procode on Mon, 03 Feb 2020 23:27:31 -0800
Spring Road (39) - programmatic transaction management based on transaction template
background
The programmatic transaction management based on PlatformTransactionManater implemented in the previous article belongs to a very low-level encapsulation. In fact, the original JDBC transaction operation is encapsulated as an interface and then implemented by a specific implementation class ...
Posted by laide234 on Sun, 02 Feb 2020 06:34:52 -0800