SpringBoot combines ShardingSphere for data slicing, read-write separation

ShardingSphere is an ecosystem of open source distributed database middleware solutions comprising three separate products, ShardingSphere-JDBC, ShardingSphere-Proxy and HardingSphere-Sidecar (planned).They all provide standardized data fragmentation, distributed transactions, and database governance capabilities that can be applied to a wide v ...

Posted on Thu, 21 May 2020 22:20:15 -0400 by nikbone

springBoot Integrated Quatz Cluster

1. Import dependencies: <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>2.2.1</version> </dependency> 2. Add to ProjectQuartz.propertiesFile (so you don't have to walk its own properties file) # ...

Posted on Thu, 21 May 2020 12:48:46 -0400 by mikevarela

OLAP query engine, ClickHouse cluster management

1, Introduction to column Library ClickHouse is an open-source column storage database (DBMS) of Yandex company in Russia in 2016, which is mainly used for OLAP online analysis and processing queries, and can generate analysis data reports in real time using SQL queries. Columnar storage For row storage and column storage, the organization st ...

Posted on Thu, 21 May 2020 00:54:06 -0400 by skeener

Maven combines JaCoCo Co and Sonar to see if you've written enough tests

1 Introduction Unit testing is an important part of ensuring code quality. How do you measure how well a unit test is written?Coverage is an important indicator.JaCoCo CoCois a tool specifically designed for Java to detect test coverage, which is called Java Code Coverage in English. This article explains how to integrate JaCoCo in the Maven pr ...

Posted on Wed, 20 May 2020 12:50:39 -0400 by davidb

Database Middleware - jdbi

Source: https://www.jianshu.com/p/1ee34c858cb9 Java's database uses jdbc natively, and there are many middleware, such as hibernate, mybatis, and jdbi, which are the most commonly used middleware. How to choose In general, if only one kind of database is always used, jdbc is the best choice. In this way, you can directly use the lowest leve ...

Posted on Wed, 20 May 2020 11:50:50 -0400 by sactown

9. Mybatis Table Association - Many-to-Many

Many-to-many mybatis3.0 adds associations and collection s tags specifically for cascading queries on multiple related entity class data, but does not support cascading saves and deletes on multiple related entity class data.Therefore, when designing many-to-many mapping tables for entity classes, it is necessary to est ...

Posted on Fri, 15 May 2020 12:38:54 -0400 by pkellum

springboot integrates activiti+bpmn-js or VUE (Architecture Building Paper)

Don't use too much space for a concise introduction Introduction to activiti Activiti is a workflow engine. Actiti can extract complex business processes from the business system, define them using a specialized modeling language (BPMN2.0), and execute them according to pre-defined processes. Actiti manages the business processes of the busine ...

Posted on Sat, 09 May 2020 13:24:51 -0400 by bholaday

Basic use of JdbcTemplate

brief introduction JdbcTemplate is Spring's encapsulation of JDBC to make JDBC easier to use. The JdbcTemplate is part of Spring. The JdbcTemplate handles the creation and release of resources. He helps us avoid some common mistakes, such as forgetting to always close the connection. The methods of executing SQL statements in the JdbcTemplate c ...

Posted on Wed, 06 May 2020 11:15:39 -0400 by Paavero

Java learning notes 48 (DBUtils tool class I)

As can be seen from the example in the previous article, when adding, deleting, modifying and querying, a lot of code is repetitive, Then, can we encapsulate the addition, deletion, modification and query into a class for the convenience of users   package demo; /* * Implement JDBC tool class * Define a method to directly return the conne ...

Posted on Tue, 05 May 2020 00:19:00 -0400 by pod2oo5

Spring Boot default data source

1. Use the Spring Boot default data source http://blog.csdn.net/qq_35760213/article/details/73863252 1.1 introducing POM dependency In pom files, we directly rely on the official spring boot start JDBC module or spring boot start data JPA module. <dependency> <groupId>org.springframework.boot</groupId> < ...

Posted on Sun, 03 May 2020 05:14:25 -0400 by Mijii