Second: Java+MyBatis (in-depth study)
Write log output environment configuration file During the development process, the most important thing is to view the log information output by the program on the console. Here, we choose to use log4j tool to output:
I Preparations: import the jar packages beginning with log4j in [lib] under [MyBatis] folder into the project and add dependen ...
Posted by battlesiege on Tue, 11 Jan 2022 12:28:25 +0100
Maven's installation, configuration, command and detailed teaching
Why should we learn maven?
Before maven was born, we had a lot of inconvenience in making the project.
1: jar packages are hard to find
2: jar package dependency
3: Jars are inconvenient to manage (manage jar s according to different functions)
4: Project compilation
Introduction to Maven
Maven is an open source project o ...
Posted by webtuto on Mon, 10 Jan 2022 05:40:01 +0100
exe4j: detailed tutorial for converting jar package into exe application
1. Foreword
Requirements encountered in recent work: it is required to make a desktop application, which is used to connect the Linux system and has operation and maintenance function. It is required to run win and operate through the interface, but the interface is not required to be very beautiful.
Since I mainly focus on Java and am relati ...
Posted by scialom on Wed, 05 Jan 2022 20:34:42 +0100
Detailed explanation of Log integration in SpringBoot
Integration of Log in SpringBoot
1, Classification of logs
1. Name classification
log4j: log for javalogBack log description
Note: by default, springBoot integrates logback logs
2. Log classification
Root log: Global log rootlogger (log level of springboot: info)
Sub log: package log logger
3. Log level
OFF = "ERROR =" WARN ...
Posted by RonDahl on Tue, 04 Jan 2022 05:16:43 +0100
Collections in Java
Single column collection
ArrayList
Variable array, default capacity 10. Automatically move the following elements after inserting them
Not thread safe
Vector
The main difference from ArrayList is that the thread of Vector is safe, and other usage methods are consistent with ArrayList
LinkedList
The bottom layer is realized by two-way lin ...
Posted by jwilh on Sun, 02 Jan 2022 19:43:36 +0100
Study notes - Maven
What is Maven?
Now we need to use many third-party class libraries to build a project. For example, writing a Web project using Spring requires a large number of jar packages. The number of jar packages in a project often makes us stunned, and the relationship between jar packages is complex. One jar package often references other jar pack ...
Posted by phpfanphp on Tue, 21 Dec 2021 14:35:04 +0100
Detailed explanation of Mybatis knowledge points and solutions to problems encountered, dynamic agent, annotation and reflection
1.Mybatis:
First meet Mybatis:
Introduction to MyBatis
Environmental description:
jdk 8 +MySQL 5.7.19maven-3.6.1IDEA
Before learning, you need to master:
JDBCMySQLJava FoundationMavenJunit
What is Mybatis:
MyBatis is an excellent persistence layer framework MyBatis avoids almost all JDBC code and the process of manually setting param ...
Posted by PetrZagvazdin on Sun, 19 Dec 2021 18:00:50 +0100
[untitled] annotation and reflection
Annotation and reflection
Annotation
annotation effect
It is not the procedure itself, which can be explainedIt can be read by other programs (such as compiler, etc.) Format of annotation
The annotation exists in the code as "@ annotation name", and some parameter values can be added Where is annotation used?
It can be atta ...
Posted by hhheng on Fri, 10 Dec 2021 11:45:19 +0100
Java API (DAO mode + library management system console version)
catalogue
1, Understand the idea of layered programming
2, Composition of DAO design pattern and development of each part
2.1 general
2.2 role of Dao mode
2.3 composition of Dao mode
3, Adding, deleting, modifying and searching the console version of library information management system based on DAO mode
3.1 preparation process ...
Posted by McJepp on Tue, 07 Dec 2021 20:28:15 +0100
Mybatis framework (spring boot simplifies mybatis) -- 2
catalogue
1. Spring boot simplifies Mybatis
1.1 project integration
1.1.1 create project
1.1.2 import jar package
1.1.3 delete redundant files
1.1.4 description of main startup exceptions
1.1.5 modify YML configuration file and pojo class
1.1.6 submit Mapper interface to container management
1.1.7 edit test class
2. Ba ...
Posted by blacklotus on Tue, 07 Dec 2021 13:13:03 +0100