Compilation principle recursive descent analysis First, Follow set and prediction analysis table
Let's start with an example:
With grammar: E -> TE' E'->+E|ε T->FT' T'->T|ε F->PF' F'->F'|ε P->(E)|a|b|^
On the solution of First,Follow set and prediction analysis table
First of all, I read books and online materials. At first glance, I couldn't understand them. Next, let me share them in vernacular
First and Fol ...
Added by flemingmike on Sat, 19 Feb 2022 08:16:19 +0200
SpringBoot integrates Swagger3 to generate interface documents
1, About Swagger
Swagger, the main API Builder based on openspecification, became an open source API. Swagger provides a set of methods to automatically generate documents through code and annotations, which will be very helpful to ensure the timeliness of API documents. Swagger2: maintenance stopped in 17 years Swagger3 (Open Api3): relea ...
Added by fr0mat on Sat, 19 Feb 2022 07:40:33 +0200
Stepping on the pit: a bloody case caused by timeout of dubbo asynchronous call
background The response time limit for new business requirements shall be controlled within 5s(md5 warehouse collision time limit of 1.2s, business flow time limit of 3.8s), which will directly lead to production accidents after online (Party A's father feedbacks that there are a lot of overtime).
environment dubbo 2.6.0
problem analysis For ...
Added by Chesso on Sat, 19 Feb 2022 07:38:31 +0200
Spring @ transactional transaction failure scenario? How to solve it?
In project development, if multiple table operations are involved, transaction mechanism will be adopted to ensure the consistency of business data;
However, many small partners may just have a brief understanding. Once they encounter transaction failure, they will have no way to start. This article summarizes the common scenarios of Spring t ...
Added by alcoholic1 on Sat, 19 Feb 2022 07:06:20 +0200
Spring MVC learning notes
1. SpringMVC
ssm: mybatis + Spring + spring MVC MVC three-tier architecture
JavaSE: study hard and get started quickly
JavaWeb: study hard, teachers lead, and get started quickly
SSM framework: study official documents, exercise self-study ability, exercise note taking ability and exercise project ability
SpringMVC + SpringBoot + Spring ...
Added by Deltran on Sat, 19 Feb 2022 06:57:49 +0200
Constant pool in java
The runtime data area of JVM mainly includes heap, stack, method area, program counter, etc.
The method area is used to store class information, constants, static variables and code compiled by the real-time compiler that has been loaded by the virtual machine.
More specifically, static variables + constants + class information (version, meth ...
Added by mhoard8110 on Sat, 19 Feb 2022 06:50:24 +0200
Using TreeSet to realize two sorting methods of Comparable and Comparator (NATURAL sorting and customized sorting)
Recently, I was looking at the relevant contents of collections in Javase. As one of the implementation classes of the Set interface, TreeSet adopts the storage structure of red black tree. The requirements are: 1) Attributes added to TreeSet must be objects of the same class; 2) Every time you insert elements into the tree through add (), you ...
Added by me102 on Sat, 19 Feb 2022 06:24:35 +0200
Basic Java lesson 1
Basics
notes
Single line comment: / / Multiline comment: / **/ Document notes:/** * */
identifier
It refers to a symbol used to identify an entity and the name used by users in programming. It is used to name variables, constants, functions, statement blocks, etc
All identifiers should be in letters (AZ, AZ), dollar sign ($), unde ...
Added by jcinsov on Sat, 19 Feb 2022 05:53:06 +0200
Introduction to Exception and the use of transactions
Introduction to Exception and the use of transactions
1, Java exceptions: Error and Exception
1. Overview of exception mechanism
The exception mechanism refers to how the program handles when an error occurs in the program. Specifically, the exception mechanism provides a safe channel for the program to exit. When an error occurs, the proces ...
Added by Donny Bahama on Sat, 19 Feb 2022 05:03:39 +0200
Explore String, StringBuilder, and StringBuffer in Java
preface
I believe that String is one of the most frequently used classes in Java, and it is also a favorite question in interviews with major companies. Today, let's learn about String, StringBuilder and StringBuffer, analyze their similarities and differences and understand the applicable scenarios of each class
1, String class
The ...
Added by jamkelvl on Sat, 19 Feb 2022 04:28:58 +0200