RocketMQ Master-Slave Synchronization Source Code Analysis

Wechat Public Number "Back-end Advancement" focuses on back-end technology sharing: Java, Golang, WEB framework, distributed middleware, service governance and so on. A previous article on the difference between RocketMQ queues and Kafka partitioned replicas mentioned that RocketMQ message redundancy is mainly achieved through master- ...

Posted on Mon, 14 Oct 2019 05:11:02 -0700 by brewmiser

java Foundation (32): Class Loading, Reflection

1. Class loader 1.1 Class loading When a program wants to use a class, if the class has not been loaded into memory, the system will initialize the class by loading, connecting and initializing three steps. Load It means to read the class file into memory and create a Class object for it. The system creates a Class object when any class ...

Posted on Mon, 14 Oct 2019 04:41:14 -0700 by aurigus

Express Logistics Single Number Information Inquiry Call Express Bird API

E-commerce platforms and small programs have logistics modules, which need to inquire about the status of logistics trajectories. It is very troublesome for every family to dock with Shunfeng, Shentong, Zhongtong, Yuantong, Yunda, Baishi, Post, EMS, Jingdong, Tiantian, Debang, Aneng and other express single inquiry interfaces and electronic one ...

Posted on Mon, 14 Oct 2019 00:21:05 -0700 by herreram

IoC Loaded Bean: Summary

In the previous section, we have loaded the beans into the IOC container. Next, we will load the IOC beans out for code parsing remarks: (some explanations refer to the relevant explanations of other blogs). Let's discuss together, Please add me QQ:1051980588. The initialization node of a bean is opened by the first (explicit or implicit) call ...

Posted on Sun, 13 Oct 2019 20:46:10 -0700 by fewtrem

Spring 5 source code deep parsing - how is spring transaction implemented through AOP? (100% understanding of Spring transactions)

This article needs a Spring AOP foundation, knowing the underlying principles of AOP can better understand Spring's transaction processing. Custom Label For the code analysis of transaction functions in Spring, we start with the configuration file, which has such a configuration: <tx: annotation-driven/>. It can be said that the configu ...

Posted on Sun, 13 Oct 2019 20:43:39 -0700 by ankurcse

Implementing File Copy and Obtaining Copy Progress

Project brief introduction Use one thread to implement file copy, open another thread to calculate and display the progress of the current copy. Copy class import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOE ...

Posted on Sun, 13 Oct 2019 13:45:29 -0700 by luked23

Nc65 Add Custom Reference

Nc65 Add Custom Reference The requirement is to customize 5 fields in the collection and settlement management, referring to the payment statement. Reference information needs to be inserted in the reference table bd_refinfo Insert reference statements insert into BD_REFINFO ( CODE, DR, ISNEEDPARA, ISSP ...

Posted on Sun, 13 Oct 2019 12:50:29 -0700 by anikin

Several sentences of java code do 100,000 why data

Recently, I want to make an app to recommend 100,000 stories of why for children, but after looking for a long time data, I found it very difficult to find, and went to write crawlers, found that there is no good website to climb, the last chance to find a usable interface on csdn, and quickly solved the problem. Attached below is the way to im ...

Posted on Sun, 13 Oct 2019 10:47:00 -0700 by ognotongo

springboot2 properties file dynamic loading

1. A better solution is to use file monitoring to rely on commons-io2. <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.5</version> </dependency> 2. Writing listeners import java.io.File; import com.di ...

Posted on Sun, 13 Oct 2019 10:43:31 -0700 by majik92

Java Dynamic Proxy Source Analysis

Java Dynamic Proxy Source Analysis Interface and proxy classes Interface package cn.jastz.java.reflect.dynamic.proxy; /** * @author zhiwen */ public interface Foo { void bar(); void rtest(); void rtest1(); void rtest2(); } proxy class // // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower d ...

Posted on Sun, 13 Oct 2019 09:42:37 -0700 by DigitalNinja