[Java] detailed steps for connecting JDBC to database (necessary for interview)
Catalogue of series articles
The purpose of this article is to explain in detail the six steps of connecting to a database using JDBC
The first step is to register the explanation link of the driver: JDBC - MySQL registers the driver (reflection) in the way of class loading_ m0_56164356 blog - CSDN blog
// 1. Register drive ...
Posted by azsolo on Wed, 08 Dec 2021 21:36:38 +0100
JDBC core technology
JDBC introduction
JDBC(Java Database Connectivity) is a common interface (a set of API s) independent of a specific database management system and general SQL database access and operation. It defines the standard Java class libraries used to access the database (java.sql,javax.sql). These class libraries can be used to access database res ...
Posted by davidosullivan on Tue, 30 Nov 2021 11:56:57 +0100
Basic knowledge of JDBC - overview, PreparedStatement, data table operation
JDBC overview
Data persistence
Persistence: save data to a power down storage device for later use. In most cases, especially for enterprise applications, data persistence means saving the data in memory to the hard disk for "solidification", and the implementation process of persistence is mostly completed through various relat ...
Posted by Aikon on Mon, 29 Nov 2021 06:58:18 +0100
MyBaits learning notes - annotation development and Lombok use ("the most complete MyBatis learning")
front
word
:
\textcolor{blue} {Preface:}
preface: 💥MyBatis learning source code in gitee 💥 The code used can be found here
8, Annotation development
1. Interface ...
Posted by kanth1 on Thu, 11 Nov 2021 09:19:29 +0100
[Volume I of "middleman making money secrets" -- JDBC realizes CRUD operation on Database
preface
Hello, ladies and gentlemen, little tu started learning JDBC today, so I'd like to send you a "fresh" learning blog
As we all know, Java application and database are two different systems, so how do we combine them? At this time, our "middleman" - JDBC, through this blog, we can let readers know how to realize ...
Posted by manchuwok on Sat, 30 Oct 2021 02:30:06 +0200
SpringBoot implements multiple data source configuration
Spring boot for multi data source configuration
springBoot implements the configuration of multiple data sources application.properties Configure two data sources in
spring.datasource.primary.url=jdbc:mysql://localhost:3306/test1
spring.datasource.primary.username=root
spring.datasource.primary.password=root
spring.datasource.primary.driv ...
Posted by AtomicRax on Mon, 20 Jul 2020 18:01:36 +0200
One level of mybatis cache
For the mybatis framework. It seems to be used in copy all the time. For mybatis caching. There is no accurate cognition. Take advantage of the holiday. Learn the cache of mybatis. This article mainly studies the first level cache of mybatis.
Why cache
In fact, we have been working for a long time, and we know that many bottlenecks ar ...
Posted by yelvington on Sat, 27 Jun 2020 09:29:25 +0200
Beauty of Mybatis source code: 2.11. Initialize global configuration through settings configuration
Initialize global configuration through settings configuration
When it comes to initializing the global Configuration of Mybatis through settings, it is difficult for us to bypass the Configuration object of Mybatis.
Configuration object is undoubtedly one of the core objects of Mybatis. It defines many properties and methods. In the process of ...
Posted by aQ on Sat, 27 Jun 2020 07:43:54 +0200
Beauty of Mybatis source code: 2.12. Parse the 'environments' element to complete the multi environment configuration in' Mybatis'
Parsing environment elements to complete multi environment configuration in Mybatis
After finishing the tedious process of configuring the Configuration object based on settings, it's time to parse the environments tab and configure the Mybatis multi environment.
Mybatis supports multi Environment configuration by default. There is an Environme ...
Posted by salathe on Sat, 27 Jun 2020 06:24:08 +0200
Spring --- the fourth day of learning (transaction control of JDBC template + spring)
JdbcTemplate
JdbcTemplate is an object provided in the spring framework, which functions as QueryRunning and is a simple encapsulation of the original Jdbc API object. The spring framework provides many template classes that are facing different database types.
Operational relationship data:
JdbcTempl ...
Posted by ramus on Fri, 26 Jun 2020 05:12:02 +0200