Java data structure and algorithm series -- stack
Catalog
1. Basic concept of stack2. Java simulation simple sequential stack implementation3. Enhanced function stack4. Using stack to realize string reverse order5. Use stack to judge whether separator matches 6, summary
1. Basic concept of stack
Stack is also called stack or stack. As a data structure, stack is a special linear table that can ...
Posted by mattdarnold on Wed, 11 Dec 2019 00:57:25 -0800
Kafka+Zookeeper cluster construction
Environmental preparation
Kafka
Version: kafka_2.10-0.10.2.0 (2.10 for Scala version 0.10.2.0 for Kafka version)
Official download address: http://kafka.apache.org/downloads
Zookeeper
Version: zookeeper-3.4.13
Official download address: http://zookeeper.apache.org/releases.html
JDK
Version: jdk1.8.0_
Official download address: h ...
Posted by NuLL[PL] on Tue, 10 Dec 2019 14:49:00 -0800
Spring Cloud Article 4 | Client Load Balancing Ribbon
This is the fourth article in the Spring Cloud column. Understanding the first three articles will help you better understand this article:
First Spring Cloud | An overview of the Spring Cloud preamble and its common components
Spring Cloud Part 2 | Use and Know the Eureka Registry
Spring Cloud Article 3 | Build a highly available Eurek ...
Posted by kylebuttress on Tue, 10 Dec 2019 13:09:09 -0800
Analysis of Mybatis plug-in
Preface
MyBatis provides a powerful extension function, that is, the plugins function of MyBatis. MyBatis allows you to intercept and call at a point during the execution of mapped statements. After interception, you can add some customized functions to existing methods, such as common page splitting functions. When you try to modify or rewrit ...
Posted by mayanktalwar1988 on Sat, 07 Dec 2019 10:25:58 -0800
Java bytecode 1-Agent easy to use
I. overview
Java Agent is introduced from JDK 1.5 and later. Its function is equivalent to an interceptor before your main function, that is, before executing the main function, execute the code in the Agent first.
The Agent code runs in the same JVM as your main method and is loaded by the same classloader and managed by the same security po ...
Posted by Azazeal on Fri, 06 Dec 2019 20:19:56 -0800
java using JNI to call C under Linux++
java using JNI to call C under Linux++
1.JNI introduction
JNI is Java Native Interface(Java local interface), which is a protocol. Its main function is to realize java calling C / C + + code (Class Library), or C / C + + calling java code
2. prepare JNI
First, use java h to generate. H header file according to. java file, ...
Posted by beermaker74 on Fri, 06 Dec 2019 11:59:34 -0800
Night light brings you into the new field of SSM framework
Preface to the night light:
Cherry trees can't keep the pace of March. ~ ~
Text: AOP
The underlying principle of aspect oriented programming is dynamic agent implementation. If there is interface implementation for the aspect strategy, the dynamic proxy technology of JDK is used; if there is no interface implementa ...
Posted by JustFoo on Fri, 06 Dec 2019 10:47:12 -0800
jdk1.8 Base64Util Illegal base64 character
Encoding and transcoding of jdk1.8 base64
Practical scenario
Recently, there is a need to download the image to the local according to its url, and the client cannot access the url and can only receive Base64 image code. Therefore, it is decided to use the base64 provided by jdk for encoding and transcoding storage.
Episode
Two tool classes a ...
Posted by justspiffy on Fri, 06 Dec 2019 05:35:25 -0800
How to configure multiple JDK environment variables under Linux(CentOS7)
I. Linux version
2. Copy and paste multiple jdks, as follows
cp -R jdk1.7.0_80/ jdk1.7.0_80-2
cp -R jdk1.7.0_80/ jdk1.7.0_80-3
3. Configure multiple JDK environment variables
Add the following after the / etc/profile file
# JDK1 environment configuration
export JAVA_HOME=/usr/local/program/jdk1.7.0_80
export JRE_HOME=$JAVA_HOME/jre
export ...
Posted by lasse48 on Fri, 06 Dec 2019 02:21:17 -0800
What lock-free technologies exist in Java to solve concurrency problems?How to use it?
In addition to using synchronized, Lock locking, there are many tool classes in Java that can solve concurrency problems without locking
1. Atomic Tools
In JDK 1.8, the classes under the java.util.concurrent.atomic package are all atomic classes, which are based on the implementation of sun.misc.Unsafe.
To solve concurrency problems, the ...
Posted by cyanblue on Fri, 06 Dec 2019 02:18:00 -0800