Golang keyword -- type definition

reference resources Go keyword -- type In addition to the definition of type, the original text also introduces several other applications of type. This article only talks about type definition. type can be used in the following ways: 1. Define structure 2. Define the interface 3. Type definition 4. Type alias 5. Type query 1, Type defin ...

Added by tequilacat on Thu, 10 Feb 2022 02:54:49 +0200

Microservice architecture learning SpringBoot integration Druid

Microservice architecture learning SpringBoot integration Druid Introduction to Druid A large part of Java programs need to operate the database. In order to improve the performance, they have to use the database connection pool when operating the database. Druid is a database connection pool implementation on Alibaba's open source platf ...

Added by phpn00bf4life on Thu, 10 Feb 2022 00:41:58 +0200

nginx installation and getting started

Reference notes: Install and configure Nginx using yum under CentOS 7 Nginx Getting Started Guide How to install nginx Install nginx using yum or up2date 1. First check the version number of Linux distribution cat /etc/redhat-release My system version is: CentOS Linux release 7.5.1804 (Core) 2.Nginx is not in the default Yum so ...

Added by nerya on Wed, 09 Feb 2022 23:26:12 +0200

Agent pattern and aspect oriented design pattern

The observer mode was mentioned earlier. By the way, the factory mode and aspect oriented mode are mentioned here. Let's use dynamic agent to realize aspect oriented and use configuration file to realize component management. This is also a blog post written before. What is AOP In human terms, it is aspect oriented programming. What asp ...

Added by aeonsky on Wed, 09 Feb 2022 21:13:47 +0200

[java basics] 08 multithreading

catalogue 8.1 basic concepts: program, process and thread 1 Basic Concepts 2 advantages of multithreading 3 when multithreading is required 8.2 creation and use of threads 1. Creation method 1: inherited from Thread class 2 thread scheduling 3 creation method 2: implement Runnable interface 8.3 thread life cycle 1 status ...

Added by unlishema.wolf on Wed, 09 Feb 2022 20:47:17 +0200

Java view code generated by dynamic proxy

https://www.cnblogs.com/ctgulong/p/5011614.html 1. Create an agent that exports the generated class Agent is used to deal with a jvm. It needs to implement a static public static void premain(String agentArgs, Instrumentation inst) method I use the following code to create an agent package ctgu.jagent; import java.io.File; import java.io.Fi ...

Added by frog_ on Wed, 09 Feb 2022 20:14:11 +0200

02 regular expression

regular expression 1. Learning objectives Master the function of regular expressionsMaster the syntax of regular expressionsLearn about common regular expressions 2. Content explanation 2.1 concept of regular expression Regular expression is a logical formula for string operation. It uses some specific characters defined in advance and th ...

Added by stride-r on Wed, 09 Feb 2022 20:13:08 +0200

Interfaces and abstract classes

catalogue  Abstract class Abstract method Three principles of abstract class   Interface Interface usage principle Two built-in interfaces of JDK ①java.lang.Comparable comparison interface ②java. Lang. clonable clone interface Deep and shallow copies of objects    The difference between abstract classes and interfaces Abstract class ...

Added by Yippee on Wed, 09 Feb 2022 18:33:08 +0200

AQS detailed explanation and source code annotation analysis

AQS detailed explanation and source code analysis 1. General What is AQS? The full name is AbstractQueuedSynchronizer, which is an abstract class in JDK. First, let's look at the classes that inherit it: Basically, all classes in JUC concurrent packages are related to it. AQS is a heavyweight basic framework used to build locks or other sy ...

Added by Hypnos on Wed, 09 Feb 2022 06:30:36 +0200

Control execution flow in Java

1, Type of operator Arithmetic operators: +, -, *, /,%, + +, – Assignment operator:= Displacement operators: <, > >, > >, < < =, > > =, > > >= Bitwise operators: &, |, ~^ Relational operators: >, > =, <, < === Logical operators: & &, ||,! Ternary operator:?: String ...

Added by clown[NOR] on Wed, 09 Feb 2022 06:05:34 +0200