Code usage of ActiveMQ

Use by code 1. Point to point mode Producer code import javax.jms.*; import org.apache.activemq.ActiveMQConnection; import org.apache.activemq.ActiveMQConnectionFactory; /** * @author Producer */ public class Producer { //Default connection user name private static final String USERNAME = ActiveMQCon ...

Added by Rado001 on Sat, 09 Nov 2019 20:25:32 +0200

[dubbo] 3. Using maven to build dubbo environment (demo)

Article directory 1 create provider 1-1 create maven project 2 create provider 3 configuration provider 4 configure consumers 5 configure consumers 1 create provider Build with idea. 1-1 create maven project Demand analysis: The demo of hello, the consumer transfers the user name, and the provider decompose ...

Added by designedfree4u on Wed, 06 Nov 2019 22:55:04 +0200

Spring Boot log processing are you still using Logback?

▶ Log4j2 performance https://logging.apache.org/log4j/2.x/performance.html ▶ Spring Boot dependency and configuration Maven dependence <!-- web --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclu ...

Added by SoundreameR on Wed, 06 Nov 2019 16:26:20 +0200

Apache service ab stress test

Before ab stress test, explain the following concepts: Requests per second The quantitative description of the concurrent processing capability of the server, in reqs/s, refers to the number of requests processed in unit time under the number of concurrent users. The maximum number of requests that can be processed per unit time under the numb ...

Added by jakebur01 on Tue, 05 Nov 2019 19:34:28 +0200

2. hbase -- integrate Phoenix to implement SQL like operation hbase

I. Phoenix overview 1, introductionPhoenix can be understood as the query engine of HBase, Phoenix, a project open-source by saleforce.com, and then donated to Apache. It is equivalent to a Java middleware to help developers, such as using jdbc to access relational databases, and accessing NoSql database HBase. phoenix, the table and data of o ...

Added by zubinkasad on Tue, 05 Nov 2019 02:24:38 +0200

Java back end dodge -- Spring Boot integrates Shiro

Shiro is a common security authentication framework, which is simple and practical. There are two ways to integrate Shiro in Spring Boot: Implement the configuration in traditional SSM+Shiro in Java Use Shiro's official automated configuration dependency This article chooses the second practical way to integrate, but ...

Added by cmancone on Sat, 02 Nov 2019 20:15:43 +0200

Intelligent sales system

1. Project construction preparation 1. Build Maven web project 2. Import the jar package required by the project <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="h ...

Added by johnrcornell on Sat, 02 Nov 2019 17:06:09 +0200

Download the file of Node.js

The file download of Node.js mainly solves one of my needs recently. Requirement Description:How to store the files uploaded by Tencent cloud in a local directory? If you use js to implement it, pure JavaScript does not have such a function (maybe there is). Just because I use node.js more in this project, I can use the rich API of node.js to ...

Added by swon on Sat, 02 Nov 2019 13:41:34 +0200

Spring boot realizes dynamic control of timed tasks - supports multiple parameters

Due to work reasons, it is necessary to dynamically add, delete, modify and check timed tasks. Most of the data on the Internet are realized by integrating the quertz framework. I checked some data and found that springBoot itself supports the dynamic control of timing tasks. And it is improved to support any multi parameter timing task configu ...

Added by jsimmons on Sat, 02 Nov 2019 11:08:01 +0200

Big data case: MapReduce's map end table merge (Distributedcache)

Code download address: https://github.com/tazhigang/big-data-github.git I. preliminary preparation Since this case is optimized on the basis of case 6, please refer to case 6 for requirements and data input and output; for the first time, you need to copy the pd.txt file in the root directory of the J disk of the local computer for reference. ...

Added by powerpants on Sat, 02 Nov 2019 05:21:35 +0200