SpringBoot integrates MyBatis and Druid to configure multiple data sources
Preface
Because the project requires that three data sources be used simultaneously in two projects, and then it's a toss-and-roll. I have seen many cases from the internet, but there are more or less problems. MyBatis, for example, can only be developed with annotations, not configurations. I think t ...
Posted by pkedpker on Tue, 30 Jul 2019 22:24:17 +0200
Sharing-Jdbc Implementing mysql Subdatabase and Tables
Sharing-Jdbc Implementing mysql Subdatabase and Tables
Brief introduction
The database sub-table is different from the read-write separation. The sub-table is to build the same table in multiple libraries and different tables in the same library. It can be found and implemented by random or hash methods. Read-write separation is to solve the pr ...
Posted by Stathy on Mon, 29 Jul 2019 10:09:27 +0200
Java Day 33 (Transaction & Database Connection Pool & DBUtils)
affair
Transaction actually refers to a set of operations that contain many single logic. As long as one logic fails to execute successfully, it fails. All data is returned to its original state (rollback)
Why do we have business?
To ensure the success of logic. Example: Bank transfer.
Demonstrate transactions using the command line.
Op ...
Posted by Corin on Mon, 22 Jul 2019 13:52:06 +0200
Learning Summary of "Easy and Happy Play Turn Spring Data"
Time: Monday, 24 April 2017Note: Part of the content of this article is from Mucho.com. @ Mu Course Net: http://www.imooc.comTeaching sample source code: https://github.com/zccodere/s...Personal learning source code: https://github.com/zccodere/s...
Chapter 1: Course introduction
1-1 Course Introduction
What is Spring Data
Purpose: To provide a ...
Posted by dsaba on Fri, 05 Jul 2019 20:41:43 +0200
Deep Exploration of Exceptions and Error Handling in Java
The exception handling mechanism in Java is mature, and our Java programs are full of exceptions. If these exceptions are not handled in advance, there will be no debugging for future program crashes and it is difficult to find the location of exceptions.This article will discuss how exceptions and errors are handled in Java, so let's take a ...
Posted by jonsjava on Tue, 02 Jul 2019 18:21:46 +0200
HBase Phoenix Helps Real-time Analysis of Massive Data
Preface
Phoenix is a project that I haven't had much contact with. When a company I met last year used Phoenix to analyze tens of billions of records and delay in returning them at the second level, I slowly explored the inside of some phoenix. Last week, I talked with a Phoenix PMC & Committer about the location and future development of P ...
Posted by akreation on Sat, 29 Jun 2019 22:59:41 +0200
JDBC DAO Layer SQL Statement Operation
JDBC DAO Layer SQL Statement Operation
I. PrepareStatment(pstmt)
The precompiled mode of pstmt can only write the SQL statement for the first time when SQL needs to perform the same operation many times but the parameters change.
And distinguish it by pstmt.addBatch();
For example:
//I want to change the age of people with different names ...
Posted by asgsoft on Sun, 23 Jun 2019 23:56:20 +0200
A Simple Understanding of Java Callback Method
What is a callback method?
Personal understanding callback refers to the need for two-step operation in solving a problem. At this time, the first step can be seen as solving a problem. The second step is to improve or supplement the operation on the basis of the results of the first step. The second step here is generally the callback method. ...
Posted by Kifebear on Wed, 12 Jun 2019 19:55:36 +0200
Source code analysis of database middleware Sharding-JDBC: Syntax parsing of SQL parsing (1)
(iv) Focus on Wechat Public Number: [Taro Back-end Cabin] Welfare:
RocketMQ/MyCAT/Sharing-JDBC All Source Analysis Articles List
RocketMQ/MyCAT/Sharing-JDBC Chinese Annotation Source GitHub Address
Every message you leave about the source code will be answered carefully. Even if you don't know how to read the source code, you can ask.
New so ...
Posted by javauser on Tue, 11 Jun 2019 21:59:50 +0200
Java Web-JDBC-2-Not just Connections
Words
In Java Web-JDBC-1-not just the connection, we did the CURD operation, but we wrote it many times and thought about how to optimize it. Does that happen every time? This can only be regarded as an operator, an operator without thought.
Today, optimize on the basis of last time.
First look at the Java Web architecture:
First, the fi ...
Posted by new2code on Fri, 07 Jun 2019 22:31:32 +0200