jdbc advanced custom connection pool and custom jdbc framework

JDBC advanced Use of JDBC connection pool The concept of database connection pool Database connection is a key and limited resource. When java program and database get the connection, it consumes resources especially. Therefore, a database connection pool is created to manage the connection betwe ...

Added by shane0714 on Mon, 15 Jun 2020 11:47:18 +0300

Getting started with SkyWalking

Article catalog Getting started with SkyWalking background Install Elasticsearch and start Install SkyWalking and start Agent for configuring spring cloud microservices View the link call of spring cloud Single microservice call monitoring Call link monitoring between microservices All microservice ...

Added by gaz_hayes on Sun, 14 Jun 2020 10:17:06 +0300

Notes on the use of Spring IOC, AOP

Configuration of xml Create xml file in src directory, named custom Add code to xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:context="http://www.springframework.org/schema/context"  xmlns:aop="http:/ ...

Added by jonorr1 on Fri, 12 Jun 2020 04:59:06 +0300

SpringBoot 2.3 integrates the latest ShardingJdbc + Druid + MyBatis

Today, the project is not busy. I want to have a look at the sharding JDBC sub database and sub table. I want to achieve the following: Discard the xml configuration and use. yml or. properties file + java to configure spring. Use Druid as database connection pool, open monitoring interface at the same time, and support monitoring multiple dat ...

Added by htcilt on Thu, 11 Jun 2020 06:47:20 +0300

Optimistic Lock (CAS) retry data version not updated under mysql transaction default isolation level

Exception Information Ccom.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction Reasons for the problem When optimistic locks modify data, the data version number has been modified, causing the modification to fail. When retrying the modification, each time the data read from the d ...

Added by xsist10 on Fri, 22 May 2020 21:51:58 +0300

Basic usage of JDBC

JDBC fixing steps: Load driver String url="jdbc:mysql://localhost:3306/jdbcstudy?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT"; String username="root"; String password="123456"; Class.forName("com.mysql.cj.jdbc.Driver");//I don't know why com.mysql.jdbc.Driver will report an error. Please leave a message if you have any ...

Added by PHPfolife on Wed, 20 May 2020 17:31:54 +0300

Use of Spring JDBC

Spring's JDBC module is responsible for database resource management and error handling, which greatly simplifies the operation of the database by the developers, so that the developers can get rid of the tedious database operation, so as to put more energy into writing business logic. For the Spring framework of database operation, the JdbcTem ...

Added by twilitegxa on Tue, 05 May 2020 09:44:21 +0300

Enum, generics, reflection, JDBC integration

brief introduction Environmental preparation Project directory jar package used Database connection configuration JDBC configuration file Run tests brief introduction JDBC (Java database connectivity) is a Java API used to execute SQL statements. It can provide unified access to a variety of relationa ...

Added by asdf on Sun, 03 May 2020 15:38:15 +0300

java jdbc ResultSet results are assigned to Java objects through java reflection

In the case of unconformity framework, when using jdbc to read data from the database, we have to get and set one by one, which is not only tedious but also not concise. So we write a tool class using java reflection mechanism, so it is not so troublesome to use jdbc to get data from the database. Because in many cases there is more than one p ...

Added by jdpatrick on Fri, 24 Apr 2020 19:05:46 +0300

Why are people reluctant to use Mybatis after JOOQ is used in the project?

Preface: (welfare at the end of the article) Today I'd like to introduce a new ORM framework - > jooq. Maybe many friends haven't heard of this framework Mybatis framework has been used as the persistent layer access framework in Java projects before. However, some recent projects have been developed with JOOQ framework, indicating that the ...

Added by andrewdunstall on Tue, 21 Apr 2020 09:59:26 +0300