springboot learning - integrate JdbcTemplate

12:59:22, February 1, 2020 The epidemic continues, disrupting many of my plans It's also good to study at home     Introduction to JdbcTemplate Spring encapsulates the operation of database deeply on jdbc. With spring's injection function, DataSource can be registered in JdbcTemplate. The Jdbc ...

Posted by magaly on Fri, 31 Jan 2020 22:21:18 -0800

JDBC notes - JDBC concept, introduction, and related objects

## JDBC: 1. Concept: Java DataBase Connectivity, Java language operation database * essence of JDBC: in fact, it is a set of rules defined by the official (sun company) to operate all relational databases, that is, interfaces. Each database manufacturer will implement the socket and provide the da ...

Posted by ballouta on Thu, 30 Jan 2020 00:04:29 -0800

Springboot+Mybatis+lombok

Note: here are some records of learning, I am not doing software development. Like here, we need to integrate springboot+spring+mybatis. We are still learning.   1, lombok configuration (1) Plug in download lombok offline download address: https://plugins.jetbrains.com/plugin/6317-lombok/versions ...

Posted by adam291086 on Wed, 29 Jan 2020 06:31:20 -0800

Database connection pool implementation details

First, a PooledConnection class is created to encapsulate the connection information; package com.bai.pool; import java.sql.Connection; /** * * Copyright: Copyright (c) 2018 LanRu-Caifu * * @ClassName: PooledConnection.java * @Description: Connection information stored in connection pool * * @version: v1.0.0 * @author: Mr ...

Posted by ashmo on Sun, 26 Jan 2020 10:24:24 -0800

Talk about the persistenceEnabled of artemis

order This paper mainly studies the persistence enabled of artemis persistenceEnabled activemq-artemis-2.11.0/artemis-server/src/main/java/org/apache/activemq/artemis/core/config/impl/ConfigurationImpl.java public class ConfigurationImpl implements Configuration, Serializable { //...... private boolean persistenceEnabled = ActiveMQDefau ...

Posted by gtcol on Sun, 26 Jan 2020 06:37:40 -0800

SpringBoot integrates MyBatis to configure multiple data sources to operate MySQL database

Taking several MySQL databases as an example, this paper adopts spring boot framework to integrate MyBatis to configure multiple data sources for database operation. In the actual project, in order to reduce the pressure on the database during the peak flow period, we can cache some database inert data ...

Posted by blues on Tue, 21 Jan 2020 03:03:57 -0800

Using jar to connect and operate MySQL database

Why use database If you want to ask where the data comes from, it may be that no matter where Xiaobai has been working for many years, he will say in unison, of course, database. So why use database? Extract: database is a "record keeping system" (the definition emphasizes that database is a ...

Posted by jimmyo on Mon, 20 Jan 2020 23:18:55 -0800

The construction of springboot workflow activiti

concept Workflow products use activiti a lot. They come with a set of UI, which can be used directly to design processes. Here is a brief summary of its steps: 1 design model 2 publish as process. A model can publish multiple versions of process 3. Establish a process instance and instance task. A process can establish multiple parallel ins ...

Posted by k3Bobos on Mon, 20 Jan 2020 06:51:07 -0800

AOP dynamic data source switch to separate master and slave read and write

Preface MySQL master-slave can better reduce the pressure of database. Today, we have a small demo. The read-only interface allows him to query the database and implement it by annotation. Code upload to code cloud:https://gitee.com/yunup/some-examples environmental information Java version 1.8 Spri ...

Posted by kippi on Sat, 18 Jan 2020 08:31:05 -0800

Sharding sphere version 4.0.0-rc1 is divided into annual tables (later optimization)

1. Sharding sphere version 4.0.0-rc1 is divided into annual tables (to be optimized later) 1.1. overview As for the tables of LogShardingAlgorithm in the previous article, I used to initialize them when I called for the first time. Although this can realize the function, I would use this if judgment every time I called. Although the performance ...

Posted by nubby on Fri, 17 Jan 2020 22:01:28 -0800