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

Stored procedure cursor

example: At present, there are three tables A, B and C. among them, A and B are one to many relationships, and B and C are one to many relationships. Now it is necessary to save the primary key of table A in B into C; The general idea is to query out B and update table C with an update statement, bu ...

Added by bobicles2 on Tue, 16 Jun 2020 10:41:40 +0300

Spring Boot Task Scheduling

2.1.12 Timing Tasks The Spring framework comes with task scheduling capabilities that are like a lightweight Quartz and are easy to use without relying on other JAR packages. Simply add @EnableScheduling to the project master startup class to turn on task scheduling @SpringBootApplication @EnableScheduling public class LearnApplication { p ...

Added by Desbrina on Mon, 15 Jun 2020 21:10:56 +0300

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

Lambda common methods

preface This article briefly summarizes the common methods in Lambda For students unfamiliar with Lambda, please refer to this article for introduction Understanding of Lambda , Lambda is really more comfortable If you are new to Lambda, but are not familiar with Consumer, Supplier, Predicate and ...

Added by Jazzy Girl on Wed, 10 Jun 2020 05:40:45 +0300

Kettle and Hadoop perform Sqoop jobs

catalog 1, Sqoop export 2, Sqoop import 1, Sqoop export 1. Create a job to export the HDFS file to the MySQL database. (1) Open PDI and create a new job, as shown in Figure 1. Figure 1   (2) Edit the 'Sqoop export' job item, as shown in Figure 2. Figure 2 Description: CDH631 is a buil ...

Added by cloudhybrid on Mon, 08 Jun 2020 06:13:45 +0300

An elastic search to use and synchronize data

1, Background ES is a distributed search framework. It can quickly query data, mainly including elastic search, kibana (a web interface used to query es data) Where does the data come from? Of course, it comes from the database or inserts into ES one by one. So this time, the requirement is to impo ...

Added by apollyon on Thu, 04 Jun 2020 16:50:17 +0300

Partition Subtable for MySQL

1. Why divide tables?The database data becomes larger and larger, with too much data in a single table.This results in slower queries and database performance bottlenecks due to the lock mechanism of tables, which can seriously affect application operations.One mechanism in mysql is table and row locking to ensure data integrity.A table lock m ...

Added by johnnyblaze9 on Thu, 04 Jun 2020 03:09:26 +0300