Small knowledge, big challenge! This article is participating in the creation activity of “Essential Tips for Programmers”.

We can use Hutool as the basic common package, on the basis of common to do some common business system basic encapsulation, such as RPC interface return or Http Web service interface return parameter encapsulation and some error code exception encapsulation.

Basic common is enough, but in our project, we will not only use these basic operations, but also use some basic components such as Redis cluster, Kafaka cluster, RocketMq cluster, Hbase cluster and so on. These basic middleware are applied differently by each company. Many companies will do some secondary encapsulation based on these open source middleware to facilitate sharing among different project teams and middleware governance.

The Hbase fault was located and reworked last time. In fact, the fundamental problem was caused by many irregularities. As programmers or architects, we need to pursue the elegance and specification of code. For example, last time we met a problem, the big data encapsulation Hbase package was not available. In fact, the main reason was non-standard, for example, the dependency download path was written in Pom file in the package. Other students in the project team can’t download it and rely on it. However, students in the big Data project team are normal, because the big Data project team has HBase 1.2.0-CDH5.15.2, but the corresponding JAR package cannot be found in the Repostry specified in the POM file in the two packages.

Ali code specification hd version download address: link: pan.baidu.com/s/1c_g7dhth… Extraction code: ICSZ