Spring Boot integrates Dubbo and uses zookeeper as the registry

preface The whole process of this article is under the operation of windows. The general operation is the same as that of Linux. Please Baidu for details and Google if you have conditions! Knowledge points to understand Dubbo and zookeeper environments and what they are Spring Boot knowledge points, limited to package structure pom dependency ...

Posted on Sat, 27 Jun 2020 02:39:33 -0400 by dhillarun

Some differences between Synchronized decorating method and code block at the bottom

Article catalog Decorated code block Modify instance method Modifying static methods summary Decorated code block The above example: public class SyncCodeBlock { public int i; public void syncTask(){ //Sync codebase synchronized (this){ i++; } } } Compile with j ...

Posted on Sat, 27 Jun 2020 02:14:36 -0400 by bobby4

Spring Boot integrates Dubbo and uses zookeeper as the registry

Spring Boot integrates Dubbo and uses zookeeper as the registry preface The whole process of this article is under the operation of windows. The general operation is the same as that of Linux. Please Baidu for details and Google if you have conditions! Knowledge points to understand Dubbo and zookeeper environments and what they are Spring Boo ...

Posted on Sat, 27 Jun 2020 01:53:36 -0400 by son.of.the.morning

api design and code implementation of stack and queue

Stack and queue are the most common data structures. In this article, we use java code to implement stack and queue. 1, Stack 1. Stack features The characteristic of the stack is first in and then out, because there is only one data access (implemented with a head pointer) for the stack. Therefore ...

Posted on Sat, 27 Jun 2020 01:46:56 -0400 by tsg

spring data operation ES can't smell any more

introduction Elastic search (hereinafter referred to as ES) is not as easy to start with as mysql. Many java programmers will find the java client of ES difficult to master, although the high level client officially recommended by ES 7.x is much easier to use than the early TransportClient. Spring Boot provides us with very convenient retrieval ...

Posted on Sat, 27 Jun 2020 00:31:27 -0400 by pradeepss

Detailed summary of linear table (array, linked list, queue, stack)

Linear table is a very basic and important data structure, which mainly includes the following contents: array Linked list queue Stack Next, I will make a detailed summary of these four data structures, including more than a dozen common operations on the linked list. I hope it will help you. 1. Array Array is a linear table data structure. I ...

Posted on Sat, 27 Jun 2020 00:08:28 -0400 by bache

Beauty of Mybatis source code: 2.6. Analyze the typeAliases element to complete the registration of type aliases

Resolve the typeAliases element to complete the registration of type aliases > Click to see the usage of the typeAliases element The typeAliases element is used to complete the configuration of type alias mapping in mybatis. We have learned a little about the type alias mechanism of mybatis. Its function is to provide a shorter name for the ...

Posted on Fri, 26 Jun 2020 23:58:33 -0400 by picos

Interface and monitor

Interface and listener in java 1, Definition of inheritance Before we understand the interface, I think we need to make clear the concept of inheritance. java is an object-oriented programming software, so we need to define classes in java. As we all know, classes have methods and properties. There ...

Posted on Fri, 26 Jun 2020 23:19:36 -0400 by parse-error

Sensitive word filtering: AOP + annotation + DFA algorithm

preface In terms of sensitive word filtering, we should say that it's big or small. Generally legal users will not have a big problem, but some illegal users deliberately engage in your business, it is not very friendly! After all, now the network is so developed, what matters to the Internet, the im ...

Posted on Fri, 26 Jun 2020 21:22:22 -0400 by jasonbullard

Spring boot uses AOP to realize the simple and flexible security authentication practice of REST interface

1 Authorized implementation This paper will implement a relatively simple and flexible API security authentication service through AOP. Let's look at the implementation first, then introduce and analyze the basic principles and common terms of AOP. 1. Definition notes package com.power.demo.common; i ...

Posted on Fri, 26 Jun 2020 02:55:37 -0400 by NME