Handwritten Tomcat based on traditional I/O
This article is excerpted from Netty 4 core principlesAs we know, Tomcat is a Web container based on J2EE specification, and the main entry is Web XML file. Web. Servlet, Filter, Listener, etc. are mainly configured in the XML file, while servlet, Filter and Listener are only abstract implementations in J2EE, and the specific business logic is ...
Added by despyz on Fri, 11 Feb 2022 05:28:30 +0200
Java calls wechat payment
Introduction: in the development of a project, my business module involves WeChat scan code payment and Alipay scan code payment. After consulting the existing documents, I found that most articles still stay in V2 payment, and some articles introduce V3 payment, but it can't go through. So I read the official documents and formed this concludi ...
Added by ankhmor on Fri, 11 Feb 2022 05:21:21 +0200
RabbitMQ dead letter queue method of payment timeout order closing policy
catalogue
1, Why is there an overtime customs clearance in the demand background
2, So most order businesses have this function. How to design it?
3, RabbitMQ dead letter queue - review of knowledge points of delayed messages
3.1 what is rabbitmq's dead letter queue
3.2 what is rabbitmq's dead letter switch
3.3 what kinds of situations c ...
Added by s1yman on Fri, 11 Feb 2022 04:44:12 +0200
Java Agent Probe Learning Notes
1. Preface
When we encounter online problems and need to add a log to help locate them, we usually need to change the code to publish online in order to output the log, which is more cumbersome.
Think: Can you change the code on the server to make it work in real time? The answer is yes!
Starting with java5, a new Java has been added to jdk. ...
Added by chitta_pk on Fri, 11 Feb 2022 04:43:39 +0200
SpringBoot notes: summary of Log configuration and performance comparison
1. What is the role of Log?
With the increase of Internet applications, the business is becoming more and more complex, and the demand for recording the operation of the business is also growing. The log framework came into being. The purposes of the log framework are roughly as follows.
1.1 problem tracking
Through the log, we can trace ...
Added by englishtom on Fri, 11 Feb 2022 04:36:07 +0200
[project record] build pc Netease cloud music program with Vue electron - build basic page
After the project is created, you can start to write static pages. Before you start, first take a rough look at the official Netease cloud music program style to see which modules can be reused to improve development efficiency.
Like tabbar, module title, some radio stations and mv modules can be reused.
Another is to ensure that there are ...
Added by bizshop on Fri, 11 Feb 2022 04:36:51 +0200
Redis common commands
1, Global command
1. Query key
Keys * query all keys and traverse all key values, complexity O(n)
2. Total number of keys
dbsize queries the total number of keys and directly obtains the total number of keys variable built in redis. The complexity is O(1)
3. Check whether the key exists
exists key returns 1 if it exists and 0 if it does n ...
Added by darklight on Fri, 11 Feb 2022 04:31:37 +0200
Mybatisplus builds multi tenant mode (shared library table, distinguishing tenants by tenant id field)
preface
In recent work, I have encountered application scenarios of multi tenant mode, for which I have consulted a lot of materials. After analyzing the feasibility, the shared library table is selected, which is realized by distinguishing tenants according to the tenant id field. This record is convenient for future reference
1. Before ...
Added by gmann001 on Fri, 11 Feb 2022 04:30:15 +0200
Six basic experiments of single chip microcomputer (compilation)
Memory reading and writing experiment:
Assign BCD codes 75H and 35H to 30H and 31H units of RAM respectively, try to add the two numbers, and the difference of BCD is sent to 32H unit.
(description):
Because the decimal adjustment instruction of MCS-51 is not suitable for subtraction, subtraction can be changed into addition: the subtract ...
Added by bigdspbandj on Fri, 11 Feb 2022 04:25:50 +0200
What are server rendering (SSR), client rendering
What are server rendering and client rendering
1, Introduction
1.1 server side rendering (SSR)
sketch: . when you right-click to view the source code, th ...
Added by Fireglo on Fri, 11 Feb 2022 04:14:23 +0200