Quick packaging and deployment of springboot

Key knowledge points: Maven's assembly plug-in implements custom packaging deployment (including dependent jar packages) At present, there are several common deployment methods of spring boot project. 1. Use the docker container to deploy, build the application of springboot into a docker image, and then start the image through the containe ...

Added by ozestretch on Tue, 11 Feb 2020 15:15:00 +0200

Understanding of multiple options of socket

Multiple options for sockets Specific source code can refer to my GitHub 1. Socket options and I/O buffer size When we do socket programming, we usually only focus on data communication and ignore the different characteristics of sockets. However, it is also important to understand these features an ...

Added by patelp7 on Tue, 11 Feb 2020 13:02:46 +0200

Executor thread pool for java Concurrent Programming

Executor thread pool for java Concurrent Programming 1 Thread-Multithread-Process a. Threads: Threads are an entity of a process and the basic unit for CPU scheduling and allocation. Threads are smaller than processes and can run independently.Threads themselves have little system resources and only ...

Added by M. Abdel-Ghani on Mon, 10 Feb 2020 04:39:56 +0200

Concurrent Go Language Foundation

1.1 Concurrent and Parallel Concurrent: Perform multiple tasks at the same time (chat with multiple friends using WeChat) Parallel: Perform multiple tasks at the same time (360 in windows is antivirus, and you're also writing code) The concurrency of the Go language is achieved through goroutine.Goroutines are similar to threads and are user-f ...

Added by Thethug on Sat, 08 Feb 2020 18:34:44 +0200

The growth of Java beginners (basic chapter) 2

Today, let's talk about the basic data types and the transformation between them; 1, Basic data types Integer floating point character Boolean 1. integer byte -1 byte - 2 ^ 7-2 ^ 7-1 - 128-127 negative - positive - 1 negate 1Byte=8bit is reasonable to say that its range should be 256, but be ...

Added by francoisp on Sat, 08 Feb 2020 14:53:14 +0200

Depth traversal and breadth traversal of [Java] graph

There are two ways to represent a graph: 1. Adjacency matrix representation: it uses the structure of two-dimensional array to store graphs. The advantage is that it is easy to calculate by array subscript, and the disadvantage is that it wastes more space 2. Adjacency table representation: use one-dimensional array and linked list to store t ...

Added by itandme on Fri, 07 Feb 2020 18:53:06 +0200

Spring boot monitoring redis subscription monitoring and publish subscription

Preface We can publish a subscription to the channel in redis. Anyone who listens to the channel can receive the published content! redis subscription listening configuration class   image.png The code is as follows: RedisListenerConfig.java package com.wzq.redis.config; import org.springframe ...

Added by boombanguk on Fri, 07 Feb 2020 16:13:14 +0200

O square level sorting algorithm

Hope the epidemic is over Today, I will share with you new and simple cases of learning data structures and algorithms, which are the internal skills of programming. So it's very important to learn it well. I hope I can continue to learn with you and insist on sharing the blog. Today, I am learning the ...

Added by seran128 on Fri, 07 Feb 2020 12:17:51 +0200

MyBatis configuring dynamic SQL statements

MyBatis configuring dynamic SQL statements In the SQL mapping file of MyBatis, sometimes you need to select different SQL statements according to some query conditions. If you rewrite SQL in every scenario, it's obvious that the efficiency is not very high, and the dynamic SQL of MyBatis solves this problem well. The dynamic SQL of MyBatis pro ...

Added by mpf on Thu, 06 Feb 2020 12:37:02 +0200

python's implementation of the dot matrix word "come on in Wuhan"

Dot matrix word To achieve this effect, first of all, the concept of lattice character: lattice font is to divide each character into 16 × 16 or 24 × 24 points, and then use the virtual reality of each point to represent the outline of the character. Dot matrix fonts are also called bitmap fonts, in which each font is represente ...

Added by nadeemshafi9 on Wed, 05 Feb 2020 17:36:30 +0200