Java code audit - 2. Reflection

reference resources: https://zhishihezi.net/b/5d644b6f81cbc9e40460fe7eea3c7925 https://stackoverflow.com/questions/16966629/what-is-the-difference-between-getfields-and-getdeclaredfields-in-java-reflectio brief introduction Reflection mechanism is not only an important embodiment of the dynamics of java language, but also the soul of the botto ...

Posted by Stryves on Wed, 01 Dec 2021 00:24:47 -0800

Redis cluster is built with three masters and three slaves

Introduction to Redis cluster Redis is an open source key value storage system. Due to its outstanding performance, most Internet enterprises use it for server-side caching. Before version 3.0, redis only supports single instance mode. Although it supports master-slave mode and sentinel mode to solve single point of failure, Internet companies ...

Posted by glassroof on Wed, 01 Dec 2021 00:00:18 -0800

Scala --- option type and partial function, exception handling, regular expression

1. Pattern matching Scala has a very powerful pattern matching mechanism and is widely used, such as: Judge fixed valueType queryGet data quickly 1.1 simple pattern matching A pattern matching contains a series of alternatives, each of which starts with the keyword case. Each alternative contains a pattern and one or more expressions. The a ...

Posted by KingPhilip on Tue, 30 Nov 2021 23:38:39 -0800

You will definitely use CSS multi row and multi column layout

Foreword: in the process of using flex in the project, if the two ends of space between are aligned, the last line will be difficult to align. This paper mainly lists the solutions for the common layout of multi row and multi column, which is convenient for everyone's daily development and use.Without much to say, let's get to the point:Scheme ...

Posted by nschmutz on Tue, 30 Nov 2021 23:30:00 -0800

MySQL's first experience of MyBatis 3

1, Annotation development 1.1 comparison between annotations and xml xml: as a configuration file Advantages: it can extract content (decoupling), clear configuration, convenient positioning and easy to findDisadvantages: complicated configuration Note: xml development can be replaced Advantages: fast development speed and no cumbersom ...

Posted by aff on Tue, 30 Nov 2021 23:19:57 -0800

Conclusion: the overall structure flow chart of t5 transformers

In order to better understand the content of t5 model structure, the overall structure process of t5 model is given here t5 overall structure and process During the operation of t5, the key is changed_ States and values_ Value of States layerselfattention of 6 encoder parts Enter hidden_staes = (1,8,11,64) First call query_states query_ ...

Posted by EPJS on Tue, 30 Nov 2021 23:13:03 -0800

Backup method of MySQL dump

Introduction to mysqldumpmysqldump is a logical backup tool of MySQL system, which is mainly used to dump databases. It mainly produces a series of SQL statements, which can be encapsulated into a file, which contains the SQL commands needed to rebuild the database, such as CREATE DATABASE, CREATE TABLE, INSERT and so on. When we need to restor ...

Posted by mjedman1 on Tue, 30 Nov 2021 22:59:51 -0800

vue3 learn to jot down 11

Deep component Provide/Inject Usually, we use prop when we need to transfer data from the parent component to the child component. However, for deeply nested component systems, sometimes deep sub components need part of the contents of the parent component. At this time, it will be very troublesome to still use the prop mechanism. For examp ...

Posted by diode on Tue, 30 Nov 2021 22:59:14 -0800

Greedy algorithm for single source shortest path (dijestra algorithm)

catalogue 1. Description of single source shortest path problem 2.Dijkstra algorithm idea 3. Specific case analysis 4. Specific code implementation   1. Description of single source shortest path problem ① Given weighted digraph G =(V,E). Where V is the set of all vertices in the graph. E is the set of all edges in the graph, and the ...

Posted by caster001 on Tue, 30 Nov 2021 22:49:01 -0800

JavaScript Sanitizer API: the native WEB security API appears

On October 18, the Web Platform Incubator Community Group in W3C published the draft specification of HTML Sanitizer API. This draft is used to solve the problem of how browsers solve XSS attacks.XSS cross site scripting attacks are a headache for developers in network security. This attack usually refers to injecting malicious instruction code ...

Posted by T_Hayden on Tue, 30 Nov 2021 22:08:04 -0800