1. Single machine of eureka Registration Center

Public address: java paradiseSource code: https://gitee.com/hjj520/spring-cloud-2.x I. IntroductionSpring Cloud Eureka is a service governance module under the Spring Cloud Netflix project. The Spring Cloud Netflix project is one of the subprojects of Spring Cloud. Its main content is the packaging of a series of open source products of Netfli ...

Posted by mgmoses on Tue, 19 Nov 2019 07:55:13 -0800

Kafka integrates Spring -- consumer end

Kafka consumer Reliability assurance As a consumer, consumption data needs to consider: 1. No repeated consumption 2. No lack of consumption information Partition allocation policy There are multiple consumers in a consumer group and multiple partitions in a topic, so it is inevitable to involve the allocation of partitions, that is, to determi ...

Posted by mhenke on Tue, 19 Nov 2019 01:05:44 -0800

SpringBoot 2.x: manual project creation and automatic project creation

SpringBoot 2.x based on Spring Framework 5.x The environmental requirements are as follows: JDK1.8 or above Maven 3.2 or above I use Eclipse here. IDEA is a powerful tool, but I'm not used to it   To create a SpringBoot project manually: Premise: the computer has Maven and JDK installed and configured in Eclipse Open eclipse - > New ...

Posted by thefisherman on Mon, 18 Nov 2019 11:52:09 -0800

A task segmentation scheme based on zookeeper / cursor

If there is a table now, it records some delay messages, that is, messages that need to be sent out at a certain time in the future. The number of records in the table is uncertain. If there are many, then multiple machines are needed to execute. If there are few, then one or two will be enough. At this time, a leader election / task segmentati ...

Posted by FireyIce01 on Mon, 18 Nov 2019 09:53:51 -0800

Tomcat service installation - follow up (easy to do)

Tomcat introduction 1. Free and open source Web application server2. A core project in the Jakarta project of the Apache Software Foundation3. Jointly developed by Apache, Sun and some companies and individuals4. Loved by Java enthusiasts and recognized by some software developers5. Currently popular Web application server Tomcat core componen ...

Posted by Hybride on Mon, 18 Nov 2019 01:13:57 -0800

Spring boot unified exception handling

Code structure Configure pom file <?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVers ...

Posted by fodder on Sun, 17 Nov 2019 10:47:34 -0800

shiro four encryption realm login and logout

shiro encryption operation Hash algorithm is generally used to generate summary information of data. It is an irreversible algorithm, which is generally suitable for storing data such as passwords, and common hash legal persons such as MD5 and SHA. In general, it is better to provide a salt for hash algorithm, such as encrypte ...

Posted by isuckat_php on Sat, 16 Nov 2019 14:12:58 -0800

Talk about rocketmq's consumeThread

order This paper mainly studies the consumeThread of rocketmq DefaultMQPushConsumer rocketmq-client-4.5.2-sources.jar!/org/apache/rocketmq/client/consumer/DefaultMQPushConsumer.java public class DefaultMQPushConsumer extends ClientConfig implements MQPushConsumer { private final InternalLogger log = ClientLogger.getLog(); //...... ...

Posted by Sillysoft on Sat, 16 Nov 2019 06:10:44 -0800

2. Principle and Use of spark--spark core

[TOC] 1. Some basic terms in spark RDD: Elastically distributed datasets, the core focus of sparkOperators: Some functions for manipulating RDDapplication: user-written spark Program (DriverProgram + ExecutorProgram)job: an action class operator triggered operationstage: A set of tasks that divide a job into several stages based on dependencie ...

Posted by FeeBle on Fri, 15 Nov 2019 22:22:07 -0800

Building non-web projects using springboot

1. Basic description of implementation function Today we're going to use springboot for a non-web project. We're more focused on implementation, so the logic is simple. Implement the function: pass in two numbers through the main() method to sum and print. 2. Specific implementation 1. Initialize a project first We can create a projec ...

Posted by hoolahoops on Thu, 14 Nov 2019 18:02:02 -0800