Please talk about using LinkedHashMap to realize LRU algorithm cache
1key and value are allowed to be null; 2key will be overwritten if repeated, and value can be repeated; 3. Orderly; 4LinkedHashMap is non thread safe;
1 LinkedHashMap can be considered as HashMap+LinkedList, that is, it uses HashMap to operate data structures and LinkedList to maintain the sequence of inserted elements 2 the implementation ide ...
Posted by rosenrosen on Fri, 04 Mar 2022 02:54:38 +0100
[mysql] classification of multi table query
Multi table query classificationCategory 1: equivalent connection vs non equivalent connection1. Equivalent connectionSELECT employees.employee_id, employees.last_name,
employees.department_id, departments.department_id,
departments.location_id
FROM employees, departments
WHERE employees.department_id = departments.department_ ...
Posted by lancey10 on Fri, 04 Mar 2022 02:53:00 +0100
The @ Pointcut syntax of AspectJ Pointcut is explained in great detail (the print code demo of interface request details is attached)
The AspectJ Pointcut syntax is very detailed
Classified pointcuts follow a specific syntax to capture the usable join points of each kind. Main types: Method execution: execution(MethodSignature) Method call: call(MethodSignature) Constructor execution: execution(ConstructorSignature) Constructor call: call(ConstructorSignature) Class initiali ...
Posted by aquilla on Fri, 04 Mar 2022 02:53:07 +0100
Kill feign and release spring cloud square components
What is Spring Cloud Square
When talking about Spring Cloud ecology, you must be familiar with Feign. As shown in the figure below, Feign can hide the Rest requests of the underlying (okhttp, httpclient) and pretend to be similar to the Controller of spring MVC. You don't have to splice URLs, splice parameters and other operations by yourself. ...
Posted by cesar_ser on Fri, 04 Mar 2022 02:48:18 +0100
One article takes you to master the new features of Vue3, and you are no longer afraid of the interviewer~
preface
Take notes and share some common Vue3 new features and which methods have changed.
I only write some commonly used here. For more, please see the Vue3 official website here
Interested parties can pay attention to the official account: front-end entertainment.
Component v-model support parameters
In vue2 When x, if we want to pass v ...
Posted by kettle_drum on Fri, 04 Mar 2022 02:41:08 +0100
Factory pattern, abstract factory pattern -- java
Factory mode
effect:
It realizes the separation of creator and caller
Detailed classification:
Simple factory mode
It is used to produce any product in the same hierarchical structure (for adding new products, the existing code needs to be overwritten) Factory mode method
It is used to produce fixed products with the same level struct ...
Posted by jeff_papciak on Fri, 04 Mar 2022 02:19:48 +0100
Local application and source configuration
catalogue
1, APT introduction
2, Supply mode of APT source
3, Local APT source
1. Use the DEB package of the CD as the APT source
2. The file source list is used as the system installation source
3. View profile
4. Update repository index
4, Network APT source
1. Backup profile
2. Write configuration file
1) Aliyuan (ubuntu 16.04)
2 ...
Posted by justravis on Fri, 04 Mar 2022 02:05:01 +0100
Design of real-time image edge detection system based on FPGA
Today, we bring you the design of real-time image edge detection system based on FPGA. Due to the long length, it is divided into three parts. Today, I'll bring the third and second articles. I don't talk much and deliver the goods.
Reading guide
With the rapid development of science and technology, FPGA brings new opportunities for digi ...
Posted by Huijari on Fri, 04 Mar 2022 02:01:04 +0100
Real time SSH dashboard for security monitoring
SSH (secure shell) is the most common remote management protocol for Linux based systems, routers, switches, firewalls, devices and other assets. Although the SSH daemon provides Excellent enhancements, Your to enhance Authentication method and access control However, SSHD does not provide native monitoring.
This blog post details how to use I ...
Posted by maplist on Fri, 04 Mar 2022 02:00:03 +0100
Data operation of MySQL
Development tools:
mysql-8.0DataGrip
Data source: Chapter7 csv
id,name,sales_A,sales_B,price_A,price_B
E001,Zhang Tong,18,15,10,5
E002,Li Gu,12,17,10,5
E003,Sun Feng,19,20,10,5
E004,Zhao Heng,12,14,10,5
E005,Wang Na,13,11,10,5
E006,Li Wei,16,16,10,5
E007,Liu Jie,11,13,10,5
E008,Xue Li,14,18,10,5
E009,Pei Jun,11,18,10,5
(1) Arithmetic o ...
Posted by brianlange on Fri, 04 Mar 2022 01:36:58 +0100