JS FA calls PA (show local album pictures)
1, Effect display
2, Project introduction
\qquad
This project uses ArkUI (JS) to develop the interface, uses JS FA to call the interface function of JAVA PA, pulls the local album through JAVA, selects the picture and returns, copies the picture to the directory accessible by ...
Posted by miltonbanks on Thu, 03 Mar 2022 15:24:44 +0100
Java learning notes Day04
day04 summary notes01 array introductionIntroduction: array is a kind of container, which can store multiple values of the same data typeint[] arr = {10,20,'a'};
System.out.println(arr[2]); // 97
double arr = {10,20,30};
System.out.println(arr[0]); // 10.0
-----------------------------------------------
proposal: The same d ...
Posted by duall on Thu, 03 Mar 2022 15:20:21 +0100
Implementation principle and application of CountDownLatch
1. Working principle of countdownlatch
CountDownLatch functions as a timer in multithreaded concurrent programming, and maintains a count variable, and its operations are atomic operations. This class mainly realizes its functions through countDown() and await(). First, it establishes a CountDownLatch object, and the incoming parameter is the ...
Posted by Fatboy on Thu, 03 Mar 2022 14:58:55 +0100
Spring MVC return value processing
There are four common types of return values of processor methods annotated with @ Controller: The first: ModelAndView The second type: String The third type: no return value void The fourth type: return custom type objects Use different returns according to different situations
preparation: 1. Import required dependencies:
<dependencies ...
Posted by edcaru on Thu, 03 Mar 2022 14:43:08 +0100
SpringBoot learning notes 02 - Common annotations and automatic assembly
1. Common spring annotations
1.1 automatic assembly
1.1.1 @Configuration
Since Spring 3.0, it has supported a better Configuration method: the Configuration method based on Java classes. The @ Configuration annotation indicates that this is a Configuration class, and its bottom layer is @ Component (that is, the bean object of this class wil ...
Posted by stephenf33 on Thu, 03 Mar 2022 14:21:25 +0100
java learning notes Day02
day02 summary notes01 identifierIntroduction: the symbols that give names to classes, methods, variables, etcSimply remember: your own nameNaming rules for identifiers:Number 0 ~ 9Character a-z A-Z_ $Cannot be keywordCannot start with a numberStrictly case sensitiveIdentifier naming conventions:Nomenclature of small hump: (variable)
I ...
Posted by bigMoosey on Thu, 03 Mar 2022 13:57:52 +0100
How to implement distributed locks with Redis?
brief introduction
I believe that the biggest motivation for many people to learn distributed locks is not their own system needs, but the needs of interviewers... Of course, this also shows that the distribution lock is very important. It is often used as an examination question. Before learning, we need to clarify several questions.
...
Posted by Virii on Thu, 03 Mar 2022 13:15:01 +0100
Java learning notes 2.3.5 operators and expression bit operators
Zero. Learning objectives of this lecture
Understand the meaning of bit operationMaster the use of bit operation
1, Bit operator concept
Bit operators are symbols that operate on each bit of binary numbers. They operate specifically on numbers 0 and 1.
2, Bitwise operator usage
(1) Classification description table
operatoroperationexa ...
Posted by Destramic on Thu, 03 Mar 2022 13:05:26 +0100
Mybatis personal study notes
Mybatis personal summary notes
01 basic information
Mybatis is the SQL mapping frameworkThis object can be mapped into a row of data in the databaseDevelopers only need to provide sql, process sql through Mybatis, and finally get the List collection or Java objectsMybatis is a semi-automatic ORM mapping tool, which is called semi-automa ...
Posted by simongcc on Thu, 03 Mar 2022 12:38:29 +0100
2022-03-03 swipe questions and punch in every day
1, The blue bridge cup test questions are divided into candy [the fifth session], [provincial competition], [group B]
(1) Problem description
Time limit: 1.0s memory limit: 256.0MB
There are n children sitting in a circle. The teacher gives each child an even number of sweets at random, and then plays the following game: Each child gave ha ...
Posted by respiant on Thu, 03 Mar 2022 12:29:13 +0100