Linux executes the official example of RocketMQ to test whether the cluster is easy to use

Let's start with the conclusion Send message: 1000 messages will be sent by default sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer Receive message: sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer The above two commands need to be executed in the installation directory of RocketMQ, and the environment vari ...

Posted on Sun, 17 Oct 2021 00:57:29 -0400 by mcfmullen

Configuration of Java, MySql, Tomcat and FTP environment on linux server

About Java          Detect whether there is a Java environment in the current system [root@Server /]# java -version #If it exists, you need to remove the environment and reinstall it          View the current jdk information. If not, it will not be output [roo ...

Posted on Sat, 16 Oct 2021 15:08:45 -0400 by gijs25

Spring Use Details

1. Introduction to Spring Spring is an open source design-level framework. The solution is the loose coupling between the business logic layer and other layers, so it will run through the whole system application with Interface-oriented programming ideas. Spring features: 1. Easy decoupling and simplified development 2. Support for AOP program ...

Posted on Sat, 16 Oct 2021 14:23:44 -0400 by Nukedesign

The basic use of Handler, the source code analysis of common problems and the source code explanation of operation mechanism

1, Definition A set of Android messaging mechanism / asynchronous communication mechanism. 2, Function In the multi-threaded scenario, the sub thread needs to transfer the update UI operation information to the main thread to realize the processing of asynchronous messages. 3, Use There are two ways to use: One is to realize asynchronous ...

Posted on Sat, 16 Oct 2021 13:36:22 -0400 by dean7

AOP aspect oriented programming for Spring basic learning

preface: Hello, guys, I'm running snail rz. Of course, you can call me snail Jun. I'm a rookie who has studied Java for more than half a year. At the same time, I also have a great dream, that is, to become an excellent Java Architect one day. This Spring basic learning series is used to record the whole process of learning the basic knowle ...

Posted on Sat, 16 Oct 2021 13:07:39 -0400 by scratchwax2003

Binary sort tree

Introduction to binary sort tree Creation of binary sort tree (addition of nodes) From the definition of binary sort tree, its premise is binary tree, and it is defined in a recursive way. Its nodes meet a partial order relationship. The value of the root node of the left child tree must be smaller than that of the parent node, and the valu ...

Posted on Sat, 16 Oct 2021 03:49:47 -0400 by marconi8

Java design pattern -- simple factory pattern

1. Simple factory pattern definition Provides a function of creating object instances without caring about their implementation. The type of the created instance can be an interface, an abstract class, or a concrete class. 2. The simple factory contains the following roles CarFactory: a simple factory for producing cars The simple f ...

Posted on Sat, 16 Oct 2021 03:05:59 -0400 by gassaz

JDK growth 3: source code exploration of common methods of ArrayList (middle)

Whether programmers work, study, or things in life. Can follow such a principle: "do simple things repeatedly, and do the right things repeatedly." such efforts will make you go on the right path and avoid many detours. From a young driver to an old driver. In the previous section, you should have mastered the capacity expansion ...

Posted on Sat, 16 Oct 2021 00:35:41 -0400 by dnoonan

Interpretation of tomcat source code

Interpretation of tomcat source code (I) What is tomcat? Tomcat By Apache Software Foundation Jakarta A of project development Servlet Container, per Sun Microsystems Technology provided Specification, which realizes the Servlet and JavaServer Page(JSP)Support and provide as Web Some unique features of the server, such as Tomcat Management ...

Posted on Fri, 15 Oct 2021 23:42:57 -0400 by le007

How to publish Java packages to Maven central warehouse

Original published on https://seriouszyx.com/archives/36/ Recently, I participated in some open source projects, involving issues related to version distribution. I didn't see detailed and outdated tutorials, so I investigated and explored myself and summarized this article. This paper mainly refers to Official documents Write and de ...

Posted on Fri, 15 Oct 2021 22:34:59 -0400 by MiniMonty