Spring hides real errors, making troubleshooting difficult
Hello, I'm looking at the mountain.
Today, after the project relies on a basic component, it failed to start. The troubleshooting process took some detours. Finally, it was confirmed that the Java. Com was caused by the version conflict of dependent components Lang.noclassdeffounderror exception. The following is the troubleshooting process. ...
Posted by rockroka on Sun, 02 Jan 2022 12:48:55 +0100
Hundreds of lines of code to write a Mybatis, the principle is thorough!
Author: Xiao Fu Ge Blog: https://bugstack.cn
Precipitate, share and grow, so that you and others can gain something! 😄
1, Foreword
The core principle of Mybatis is also the embodiment of its most convenient use. Why?
Because when we use Mybatis, we only need to define an interface that does not need to write implementation classes, a ...
Posted by peddel on Sat, 01 Jan 2022 23:10:00 +0100
Mybatis learning record 07 - cache
cache
1. What is Cache?
There is temporary data in memory.
Put the data frequently queried by users in the cache (memory), and users do not need to query from the disk (relational database data file) but from the cache to query the data, so as to improve the query efficiency and solve the performance problem of high concurrency system.
...
Posted by Brandon_R on Sat, 01 Jan 2022 11:38:04 +0100
[Mybatis] powerful dynamic SQL if and choose (03)
Hello, I'm a bookshelf.
In the first two sections, it mainly introduces that Mybatis framework completes the basic addition, deletion, modification and query according to Dao layer interface, mapping file (Mapper.xml file for writing SQL statement) and configuration file SqlMapConfig.xml.
This section will go deep into mapping files and intro ...
Posted by hadoob024 on Fri, 31 Dec 2021 08:45:35 +0100
[SSM framework] basic use of Mybatis
Basic use of Mybatis
Learning objectives
Meet Mybatis Learn about Mybatis features Know why to learn Mybatis Use Mybatis to write a simple program Learn to use the basic functions of Mybatis Understand the basic configuration of Mybatis
1, Meet Mybatis
Official documents
1. Introduction
MyBatis was apache An open source project ...
Posted by ac1dsp3ctrum on Mon, 27 Dec 2021 01:49:01 +0100
Mybatis multi table query
1 one to one query (many to one)
Use the simplest User and Account model to analyze the multi table relationship of Mybatis. The User is the User table and the Account is the Account table. A User can have multiple accounts (Account), requirement: query all Account information and associate query order User information. Note: because an Accoun ...
Posted by netpumber on Mon, 27 Dec 2021 00:46:25 +0100
Development efficiency artifact, mybatis plus
Daily Maxim
I am confident, so I succeed.
mybatis plus
Required Foundation:
ssm
javaweb
mysql
javaSE
Knowledge points that must be learned
Why learn from him? Is mybatis not enough?
mybatis is very convenient, and plus will certainly be more convenient
brief introduction
Mybatis simplifies jdbc, and mybatis plus simplifies mybatis ...
Posted by dineshsjce on Sat, 25 Dec 2021 23:47:19 +0100
The use of SSM|dao in Java learning
preface
In the use of Mybatis, for database operations, we create a corresponding interface and sql mapping file for each table.
Note that our dao interface is not directly used in the code in the above two articles. The following will introduce two uses of dao interface.
Tip: the following is the main content of this article. The followi ...
Posted by ro1960 on Sat, 25 Dec 2021 06:12:40 +0100
The mismatch between entity class attribute name and field name in database in MyBatis development
In the development, we often encounter that the entity class attributes are named by hump, and the underscores are used in the database_ As a result, the attribute name in the entity class does not correspond to the field name in the database: In java code, we usually use hump naming
public class Staff {
private Integer id;
private St ...
Posted by rayner75 on Fri, 24 Dec 2021 14:43:10 +0100
File upload and download case based on SpringBoot and Mybatis
File upload and download case based on SpringBoot and Mybatis
This case is based on the actual combat of the [bad programmer] enterprise file upload and download project based on SpringBoot and Mybatis. BiliBili link: https://www.bilibili.com/video/BV1764y1u7gn?p=1
Effect achieved
1. Users need to log in first. We use shiro authentication to ...
Posted by crazytigger on Fri, 24 Dec 2021 10:37:32 +0100