Reflection from 0 to getting started

Personal public number: not a bald programmer, Xiao Li.Focus on Java content, welcome to leave a messageThere are many articles in the article, so it is suggested to collect them reflex Java is divided into compile time and run time Compilation method description: Static compilation: determines the type & bound object at compile time. Su ...

Added by johnsonzhang on Thu, 12 Dec 2019 15:07:59 +0200

Java connects to manage database through JDBC

Third party classes are needed to access MySQL database. These third party classes are all compressed in a file called Jar. In order for the code to use third-party classes, you need to import mysql's special Jar package for the project Attach the download address link of the download jar package: https://pan.baidu.com/s/16BdVevqO6ezgtVPdwKar0 ...

Added by philspliff on Tue, 10 Dec 2019 22:03:32 +0200

Build Mybatis framework for idea maven project

Preparatory work: 1. Create a database 2. Create a new user table. The table fields include id, username, birthday, sex and address 3. Download and unzip the maven installation package New maven project: 1,File-new-Project 2. Select maven and click next 3. GroupId generally fills in the company domain name and writes it backward ...

Added by jawinn on Mon, 09 Dec 2019 23:48:54 +0200

Sharding-jdbc 4.0 usage

About sharding JDBC Sharding JDBC is the first product of ShardingSphere and the predecessor of ShardingSphere. It is positioned as a lightweight Java framework that provides additional services in the JDBC layer of Java. It uses the client-side direct connection database to provide services in the form of jar package, without additional deploy ...

Added by fuji on Sun, 08 Dec 2019 14:14:08 +0200

Spring executes sql script (file)

This article solves the problem of Spring executing SQL script (file). The scene description can be ignored. Scenario Description: When I run a single test, that is, when the Spring project is started, Spring will execute classpath:schema.sql (explained later). I want to use this to solve a problem: Run multiple test files at a time, and each f ...

Added by golfinggod on Fri, 06 Dec 2019 11:40:08 +0200

SpringBoot 2.0 | SpringBoot + MyBatis Configure Multiple Data Sources

In the traditional monolithic architecture, one system corresponds to one database, but in a distributed system, such as micro-services, each service corresponds to one database. Due to business requirements, sometimes it is necessary to access data from multiple databases in one service. We need to configure multiple data sourc ...

Added by staffanolin on Sun, 01 Dec 2019 21:25:50 +0200

jdbc linked database

JDBC introduction The full name of JDBC is java data base connectivity, which can provide unified access to a variety of databases. JDBC is a set of database access programming interface developed by sun, which is a SQL level API. It is written by java language, so it has good cross platform characteristics. The database application written by ...

Added by mallard on Sat, 30 Nov 2019 16:33:25 +0200

Mysql data synchronization to elastic search in Docker environment

Written in front There are generally two principles to implement mysql data synchronization es: The synchronization is performed through the regular query of sql statement. elasticsearch-jdbc [logstash JDBC] official( https://www.elastic.co/blog/l... Use binlog for synchronization Big God's open source project go-mysql-elasticsearch T ...

Added by Pinkmischief on Wed, 27 Nov 2019 18:47:58 +0200

Verification of incremental collection of mysql by logstash

Recently, there is a need to synchronize the data in a table in mysql to es. After analysis, use the jdbc plug-in of logstash or get the data in mysql. output to es. There are two collection situations: first, full collection, then incremental collection. Process verified as follows: 1. Install longstash and mysql The installation of mysql and ...

Added by Flying Sagittarius on Sun, 24 Nov 2019 16:17:10 +0200

Mapper series 4: mapper interface extension

Extension refers to adding functions not provided by general Mapper. Give an example: An example of using bulk insert as an extension function in the official document of general Mapper is:   tk.mybatis.Mapper.additional.insert.insertlistmapper < T >   tk.mybatis.mapper.additional.insert.InsertListProvider Let's ...

Added by eraxian on Tue, 19 Nov 2019 21:15:58 +0200