RocketMQ for reliable message final consistency

RocketMQ for reliable message final consistency Business description In this case, RocketMQ middleware is used to realize the final consistent distributed transaction of reliable messages and simulate the transfer transaction process of two accounts. Two accounts are in different banks (Zhang San is ...

Added by legomez2000 on Sun, 21 Jun 2020 09:31:11 +0300

If BigDecimal is not used properly, the boss's loss will still be deducted from your salary

Yunqi information:[ Click to see more industry information]Here you can find the first-hand cloud information of different industries. What are you waiting for? Come on! We have basically formed a common sense that we need to use BigDecimal instead of others where money is needed, and we all know that floating-point variables will lose precisio ...

Added by keiran420 on Thu, 18 Jun 2020 11:53:31 +0300

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