so eazy uses Netty and dynamic proxy to implement a simple RPC with one click

RPC (remote procedure call) remote procedure call RPC is used to communicate between the Java processes of two hosts in distributed applications. When host A calls the methods of host B, the process is simple, just like calling the methods in its own process. The responsibility of RPC framework is to encapsulate the details of the underlying c ...

Posted by kylecooper on Mon, 08 Nov 2021 17:30:31 -0800

JAVA static final relationship between static / construction / local code blocks

1 static 1.1 concept Is a keyword in java Used to decorate members (member variables and member methods) 1.2 features 1.static can modify member variables and methods 2. Resources modified by static are called static resources 3. Static resources are loaded with the loading of classes. They are loaded first and take precedence over objects 4. ...

Posted by echoofavalon on Mon, 08 Nov 2021 17:11:00 -0800

Using markdown to write mathematical formulas

It's really convenient to use markdown to write documents and support mathematical formulas!!!Step 1: modify the preference settings and check the inline formula optionfile -> Preferences -> Markdown -> Inline formulaAfter setting according to the following figure, we can happily enter the formula in Typora~1, Enter Greek lettersEnter: ...

Posted by fukumdaryl on Mon, 08 Nov 2021 17:10:25 -0800

MySQL backup and recovery

preface                  The main purpose of backup is disaster recovery. Backup can also test applications, rollback data modification, query historical data, audit, etc. Log plays an important role in backup and recovery. 1, MySQL log The default location of MySQL logs is / usr/local/mysq ...

Posted by irbrian on Mon, 08 Nov 2021 16:44:35 -0800

MHA high availability configuration and failover

1, Understanding MHA 1. When is MHA MHA (MasterHigh Availability) is a set of excellent software for failover and master-slave replication in MySQL high availability environment. The emergence of MHA is to solve the problem of MySQL single point. During MySQL failover, MHA can automatically complete the failover operation within 0-30 seco ...

Posted by pspeakman on Mon, 08 Nov 2021 16:31:25 -0800

Oracle SQL injection summary

0x00 Oracle Foundation Oracle basic usage What is an Oracle database? Oracle is currently one of the largest software providers in the world, alongside Microsoft and Adode. With the development of Oracle, it has become one of the largest software providers of enterprise office platform. Oracle database is the core product of Oracle (Chine ...

Posted by stormcloud on Mon, 08 Nov 2021 16:28:12 -0800

Task2 Python basic exercise: data structure summary

Task 2 Python basics review: data structure summary List list 1. Create a list by derivation x = [i for i in range(100) if (i % 2) != 0 and (i % 3) == 0] #[3, 9, 15, 21, 27, 33, 39, 45, 51 #, 57, 63, 69, 75, 81, 87, 93, 99] <class 'list'> 2. Since the element of the list can be any object, what is saved in the list is the pointer of ...

Posted by tyler on Mon, 08 Nov 2021 16:26:26 -0800

Java core technology -- Reflection

1, Class and Java reflection Class textFieldC=tetxField.getClass();      // Tetxfield is a JTextField class object Main description of reflection accessibility   1. Access construction method Each Constructor object represents a construction method, and the corresponding construction method can be manipulated by ...

Posted by kctigers23 on Mon, 08 Nov 2021 16:16:58 -0800

Java learning notes: container

container A Collection, also known as a Collection, is used to hold and manage data. 1. Singleton set 1.1 concept Singleton set: store data one by one. Collection interface: it is the root interface of a singleton collection and has two sub interfaces. It is divided into List interface (orderly storage, repeatable, "dynamic" arra ...

Posted by kabucek1 on Mon, 08 Nov 2021 16:13:12 -0800

JavaScript Preparsing, Objects

1. Pre-resolution 1. Variable Pre-parsing and Function Pre-parsing JavaScript code is executed by the JavaScript parser in the browser. The JavaScript parser runs JavaScript code in two steps: pre-parsing and code execution. Pre-parsing: In the current scope, variables with var and function declarations are declared or defined in memory ...

Posted by rthconsultants on Mon, 08 Nov 2021 15:38:19 -0800