sharding-jdbc read-write separation

Read the official document before analyzing the source code Read / write separation Major Records Learn, Public Number: Madad's Technical Wheel Core concept Main library: add, update and delete data operations Slave library: The database used to query data operations, which can support multiple slave Libraries Multi-master and multi-slav ...

Posted by thedualmind on Wed, 02 Oct 2019 01:49:01 -0700

Spring boot + mybatis + multiple data sources

Spring boot + mybatis + multiple data sources Necessary dependencies application.properties configures multiple data source connections and connection pools Configuring the Core Configuration of Multiple Data Sources Configuration of Connecting test Master Database Configuration of connecting cbh da ...

Posted by raidon on Tue, 01 Oct 2019 23:35:28 -0700

myBatis project configuration

myBatis project configuration 1,environment Mybatis supports multiple environments and can be configured arbitrarily 2,transactionManager Mybatis supports two types of transaction managers, JDBC and MANAGED (hosting) JDBC: The application is responsible for managing the life cycle of database connecti ...

Posted by pixelgirl on Tue, 01 Oct 2019 17:48:43 -0700

Poker Fighter Landlords in Order

Static methods can call the main() class BL directly through the class name without using the new object Non-static methods cannot call getAA() directly by class name. If a static method calls a non-static method BL.main() BL. getAA ()* Error It is proved that static methods cannot call non-static metho ...

Posted by Psycho on Tue, 01 Oct 2019 17:13:28 -0700

Mybatis dynamic SQL statements -- if, where, choose, when, otherwise, foreach

Mybatis Chinese development document download I. if, where Step 1: Encapsulate the mapping of database tables to User.java package cn.lemon.domain; import java.io.Serializable; import java.util.Date; public class User implements Serializable { private Integer id; private String username; ...

Posted by moonshaden on Tue, 01 Oct 2019 16:34:40 -0700

JDBC technology, encapsulation, deletion, modification, small framework

Using JDBC technology to achieve rapid addition, deletion and modification (small framework) Introduction: First of all, it's probably just two lines of concise code in Java to complete the operation of the database (the primary version). To achieve this function, we need several essential jar packa ...

Posted by luxe on Tue, 01 Oct 2019 00:55:55 -0700

MySQL Data Synchronizes to ES Search Engine in Full and Incremental Way

This article source code: GitHub. Click here || GitEE. Click here I. Detailed Configuration Scenario Description: MySQL tables synchronize with Elastic Search search engines in a full and incremental manner. 1. Download Content Elastic search version 6.3.2 logstash Version 6.3.2 mysql-connector-java-5.1.13.jar 2. Core configuration Path: / u ...

Posted by ghostrider1 on Mon, 30 Sep 2019 15:51:37 -0700

Spring - 19 Declarative Transactions

1. Programming Transactions Concept: Transaction control code is programmed by programmers Example: OpenSession InView 2. Declarative transactions Concept: Transaction control code has been written by spring. Programmers only need to state which methods need transaction control and how to control t ...

Posted by phpsharma on Mon, 30 Sep 2019 10:20:54 -0700

Hive Pre-installation

premise Log in with the hive user and create a Hive database: mysql-uhive-phive under your own database mysql>create database hive character set utf8; mysql>flush privileges; mysql>show databases; install Start installing hive on hadoop1 tar -zxvf apache-hive-1.2.1-bin.tar.gz -C /usr ...

Posted by nincha on Mon, 30 Sep 2019 04:47:14 -0700

Deep into the jvm kernel - Principle, diagnosis and Optimization - 6. Class loader

class Loading Verification Process Load The first stage of loading classes Get the binary stream of the class Conversion to method area data structure Generate corresponding java.lang.Class objects in the Java heap link Verification Get ready analysis Initialization Execution class constructor < clinit > static ...

Posted by danf_1979 on Wed, 25 Sep 2019 00:07:43 -0700