SpringBoot2 integrates Zookeeper components to manage service coordination in the architecture
Source code for this article: GitHub. Click here || GitEE. Click here
1. Introduction to Zookeeper Foundation
1. Introduction to concepts
Zookeeper is an Apache open source, distributed application that provides a coordinated service for the system architecture.Viewed from the design mode perspective, this component is a framework based on the ...
Added by mesz on Fri, 10 Jan 2020 02:01:38 +0200
Common commands for Docker container operation
This article is an introduction.
This article continues< Common commands for Docker image operation>
Software image (e.g. weChat.exe) ---- run image - > generate a container (running software, running wechat program);
operation
command
Explain
Function
docker run --name container-name -d image-name
...
Added by said_r3000 on Tue, 07 Jan 2020 03:21:38 +0200
Excerpt of wechat payment refund exception
Wechat payment refund API address: https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_4&index=6
Precautions:
Total fee: must be the payment amount of the order, unit: minute;
Refund fee: less than the order payment amount, unit: minute;
Multiple refunds can be initiated for the same order, and the out \;
Use a merchant re ...
Added by Daguse on Mon, 06 Jan 2020 21:58:48 +0200
Download Excel file with spring mvc-4.2 + excelview view view
You can download the jar package by yourself, springMvc4.2 + version + poi-3.10.1 version
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.10.1</version>
</dependency>
<dependency>
<groupId>org ...
Added by Volitics on Mon, 06 Jan 2020 12:20:36 +0200
Talk about rocketmq's RollingFileAppender
order
This paper focuses on rocketmq's RollingFileAppender
RollingFileAppender
org/apache/rocketmq/logging/inner/LoggingBuilder.java
public static class RollingFileAppender extends FileAppender {
protected long maxFileSize = 10 * 1024 * 1024;
protected int maxBackupIndex = 1;
private long nextRollover = 0;
...
Added by bad_goose on Sun, 05 Jan 2020 14:44:58 +0200
Linux - high availability of lvs with keepalived
Single master model IPVS example
Configure keepalive
Example of highly available ipvs cluster: modifying the keepalived configuration file
Modify the keepalived configuration file of the host: 192.168.234.27
1 [root@234c27 ~]# vim /etc/keepalived/keepalived.conf
2 ! Configuration File for keepalived
3
4 global_defs {
5 notification_ ...
Added by Patty on Sun, 05 Jan 2020 12:53:02 +0200
Alibaba cloud intelligent vision AI Quick Start
Summary
Intelligent visual AI open platform is an open platform for enterprise users, software and hardware service providers and developers, providing simple, easy-to-use, high-quality visual algorithms. The platform algorithm capability has been developed and precipitated by Alibaba Damo Institute machine intelligence laboratory and multi ...
Added by carydean on Thu, 02 Jan 2020 08:26:27 +0200
Spring boot integrates cxf to publish web service and client call
Spring boot integrates cxf to publish webService
1. Look at the project structure chart
2. pom dependence of CXF
1 <dependency>
2 <groupId>org.apache.cxf</groupId>
3 <artifactId>cxf-spring-boot-starter-jaxws</artifactId>
4 <version>3.2.4</version>
5 </dependency>
3. Start to wri ...
Added by Gambler on Wed, 01 Jan 2020 12:29:25 +0200
JAVA implementation of the third-party website wechat code scanning login Demo
Using JAVA Servlet to realize the Demo of the third-party website wechat code scanning login, it's really hard to do this, it's not easy to achieve, but it's still done. Here, paste the code to avoid the detour of friends who do wechat login development
package com.wxlogin.common;
import java.net.URLEncoder;
public class Co ...
Added by LAEinc. Creations on Tue, 31 Dec 2019 19:30:21 +0200
Docker basic control commands (resource control, data volume and data volume container, image creation, port mapping, private warehouse)
1, Resource control
1. CPU usage control
Limit the maximum number of containers created by this image to 10% of the total resources
docker run --cpu-quota 10000 centos
2. Prorated distribution
Create two containers, c1 and c2. If there are only two containers, set the weight of the container so that the CPU resources of c1 and c2 account for 3 ...
Added by burtybob on Sun, 29 Dec 2019 18:04:27 +0200