The use of redis distributed lock in springboot project
Now, the microservice projects developed use more distributed locks, so some records are made for the self-determined implementation of distributed locks.*In the actual project, you can use the RLock lock of the Redisson framework directly.
Create a springboot redis project springboot-redis-demo
Add dependency package
<dependency>
...
Posted by dionsweet on Tue, 28 Apr 2020 16:15:39 +0200
docker installs Chinese version of gitlab (Reprint)
1.pull image in Chinese:
docker pull beginor/gitlab-ce:11.3.0-ce.0
2. Create directory:
Generally, GitLab's configuration (etc), log (log) and data (data) are placed outside the container for later upgrade, so please prepare these three directories first.
mkdir -p /usr/local/gitlab/etc
mkdir -p /usr/local/gitlab/log
mkdir -p ...
Posted by KeitaroHimura on Tue, 28 Apr 2020 06:14:24 +0200
The use of predicate chain in java 8
The use of predicate chain in java 8
brief introduction
Predicate is a functional interface, which represents a method that needs to enter a parameter and return the boolean type. Usually used in stream filter to indicate whether the filter conditions are met.
boolean test(T t);
Basic use
Let's first look at how to use Predicate in stream ...
Posted by ThoughtRiot on Tue, 28 Apr 2020 01:49:17 +0200
Ainong payment express payment + payment form customs declaration demo
During the work period, the customer specifies to use this. During the actual work time, the other party has no demo, has an md5 signature that is also 1.0, and can't find the case through online search. The official website doesn't provide any related content of the document. Everything should be written according to the document provided by t ...
Posted by Sentosa on Mon, 27 Apr 2020 16:03:46 +0200
[interesting case] make a screen recording tool with Python
1, Write in front
As a test, sometimes it is often necessary to record their own operation on the screen, so as to facilitate the follow-up development and positioning of students. In the past, screen to GIF was used to record the screen and make dynamic pictures. Occasionally, python can also be realized. Then hurry to learn.
2, Effect display ...
Posted by Zup on Mon, 27 Apr 2020 10:21:50 +0200
Let's take a bird's-eye view of the concurrency framework in Java!
Author: Tang Youhua
https://dzone.com/articles/a-birds-eye-view-on-java-concurrency-frameworks-1
1. Why to write this article
When NoSQL became popular a few years ago, like other teams, our team was keen on exciting new things and planned to replace an application's database. However, when we go deep into details, we think of what a wise man ...
Posted by Tatara on Mon, 27 Apr 2020 09:07:29 +0200
Generics and annotations in Java
1, Use of enumeration classes
1. Description of enumeration class:
Understanding of enumeration class: there are only a limited number of objects in the class, which are certain. We call this class an enumeration class
Enumeration classes are strongly recommended when you need to define a set of constants
Implementation of enumerat ...
Posted by surajkandukuri on Sun, 26 Apr 2020 07:02:31 +0200
Talk about my SqlConnection of canal
order
This paper focuses on my SQL connection of canal
ErosaConnection
canal-1.1.4/parse/src/main/java/com/alibaba/otter/canal/parse/inbound/ErosaConnection.java
public interface ErosaConnection {
public void connect() throws IOException;
public void reconnect() throws IOException;
public void disconnect() throws IOException;
...
Posted by DuFF on Sat, 25 Apr 2020 16:47:49 +0200
Notes on cross domain access processing of springboot web project
Solve the problem of cross domain access of spring MVC web project
1. Cross origin cross domain annotation springboot has its own cross domain annotation, which can be placed on the RestController's class or method. It can also customize those domain names, which can be cross domain and very flexible @CrossOrigin / / by default @ CrossOrigin a ...
Posted by d.shankar on Sat, 25 Apr 2020 16:29:18 +0200
JMeter Parameter Signature - Groovy Tool Class Form
How do I sign parameters in JMeter?
Last Period JMeter Parameter Signature - Groovy Script Form Using Groovy scripting, this issue continues Groovy's use of parameter signatures in JMeter -- parameter signatures are done using Groovy tool classes.
This is a common situation in interface testing where one parameter of the interface is determined ...
Posted by miasma on Fri, 24 Apr 2020 04:30:03 +0200