JDBC thinking: transaction processing, DAO thinking

asds didn't have a thorough understanding of JDBC before. After all, most of them have been replaced by frameworks, but I firmly believe in the importance of the bottom layer. Because they have entered the life rhythm of the second year of graduate school and have heavy scientific research tasks, they don't have a deep look at the source code ...

Added by srini_r_r on Wed, 22 Dec 2021 05:17:44 +0200

Five ways to connect to a database

Tip: After the article is written, the catalog can be generated automatically, how to generate the help document to the right JDBC: Five ways to get a database connection Before we can get a database connection, we need to do some preparatory work: Import database connection related database drivers (also known as third-party api) into pro ...

Added by robogenus on Tue, 21 Dec 2021 18:38:28 +0200

Java implements a simple login and registration interface based on Swing and JDBC

catalogue 1, Demand analysis 2, Preparatory work 1. Prepare the development environment 2. Prepare the database 3. Prepare for outsourcing 3, Specific steps 1. Open IDEA and create an empty project  2. After completion, import a new module 3. Import the outsourcing jar package to be used by JDBC. 4, Code implementation 1. Inte ...

Added by meir4u on Tue, 21 Dec 2021 14:35:53 +0200

[JDBC technology] finally know how the Java bottom layer connects to the database! -- database connection pool

Analysis of JDBC core technology Database connection pool 1. Necessity of JDBC database connection pool When developing web programs based on database, the traditional mode basically follows the following steps: Establish database connection in the main program (such as servlet and beans)Perform sql operationsDisconnect database Pro ...

Added by SleepyP on Sun, 19 Dec 2021 18:46:55 +0200

Java_JDBC_MySQL_ Student management system

A simple instance of JDBC connecting to MySQL has been written before, which can only be understood as simple. Some of these processes can be reused, such as loading drivers, establishing connections, releasing resources, etc. in order to improve the reusability of the code, we need to standardize the overall framework of the project. The fol ...

Added by rudy.siregar on Sun, 19 Dec 2021 16:12:51 +0200

07 laying a solid foundation: MySQL advanced + JDBC practice

MySQL advanced + JDBC actual combat 1, Database integrity Data integrity (accuracy of data) Function: ensure that the data entered by the user is saved correctly in the database. Ensure data integrity = add constraints to the table when creating a table 1.1 physical integrity Entity: that is, a row in the table represents an entity F ...

Added by stockdalep on Sat, 20 Nov 2021 09:10:19 +0200

JDBC learning summary (Idea implementation)

catalogue preface 1, What is JDBC? 2, JDBC programming steps (1) Design concept (2) Preparatory work (3) Open Idea (4) Code section steps 3, Summary preface This paper records that the author has realized the java connection to the database through the study of JDBC, and completed some simple operations on the database data. ...

Added by howard-moore on Mon, 04 Oct 2021 05:18:20 +0300

[Spring] Pure java for Spring-hibernate integration

First import the corresponding jar package for Spring-hibernate Then prepare the file for the database connectionHibernate.propertiesAlsoJdbc.properties Hibernate.propertiesFile: Configure the hibernate dialect and automatic table building hibernate.dialect=org.hibernate.dialect.H2Dialect hibernate.hbm2ddl.auto=create Jdbc.propertiesFi ...

Added by Master_Phantom on Wed, 08 Jul 2020 17:41:09 +0300

The use of reverse engineering in Mybatis Generator

​​ 1, About MyBatis Generator MyBatis Generator (MBG) is the code generator of MyBatis and iBATIS. It will generate code for all versions of MyBatis and versions of iBATIS after 2.2.0. It reviews database tables (or many tables) and generates artifacts that can be used to access tables. This reduces the initial hassle of setting up objects an ...

Added by Doyley on Fri, 19 Jun 2020 06:20:27 +0300

Spring boot + durid + mybatis + docker for mysql read-write separation-2

Spring boot + durid + mybatis + docker for mysql read-write separation-2 preface Project structure Code interpretation Data source configuration DataSourceType DBContextHolder RouteDataSource DataSourceConfig SqlSessionFactoryConfig ReadOnly ReadOnlyAop mapper related classes Business test New use ...

Added by prakash on Wed, 17 Jun 2020 08:59:58 +0300