Spring notes and usage
@Configuration
explain
This is equivalent to using this class as the beans tag in Spring's XML configuration file, indicating that this is a configuration class
usage
Put the annotation on top of the class
package com.ledao.config;
import org.springframework.context.annotation.Configuration;
/**
* @author LeDao
* @company
* @create 20 ...
Added by DoctorT on Sat, 19 Feb 2022 16:39:27 +0200
Interpretation of the core source code of ArrayList
Interpretation of the core source code of ArrayList
Feel easy to use little partner, please give me a praise Oh, thank you very much!!! Most of the content comes from the Internet, and individuals have added additional content to facilitate understanding and memory
1. Basic information of ArrayList
The underlying array of ArrayList ...
Added by RandomZero on Sat, 19 Feb 2022 16:36:49 +0200
ControllerAdvice analysis description
ControllerAdvice analysis description
@What controller advice sees most is the same as exception handling. Like this one below
@ControllerAdvice
public class TestControllerAdvised {
@ExceptionHandler(value = Exception.class)
public String modelAndViewException(){
// Do some exception handling logic
}
}
When reading the source code of s ...
Added by robocop on Sat, 19 Feb 2022 16:32:20 +0200
ESP32 learning notes - TCP server
1, Advantages and disadvantages of TCP and UDP
1. TCP is connection oriented (for example, dial up to establish a connection before making a call); UDP is connectionless, that is, there is no need to establish a connection before sending data.
2. TCP provides reliable services. In other words, the data transmitted through TCP connection i ...
Added by outsidaz on Sat, 19 Feb 2022 16:32:20 +0200
NumPy: data type
brief introduction
We know that there are four types of numbers in Python, namely int, float, bool and complex. As a scientific computing NumPy, its data types are more abundant.
Today, I will explain the data types in NumPy in detail.
Data type in array
NumPy is implemented in C language. We can compare the data types in the array in N ...
Added by medar on Sat, 19 Feb 2022 16:23:16 +0200
Use Kotlin and CameraX to take photos without feeling on the desktop and screen (with source code)
Android uses Kotlin and CameraX to take photos without feeling on the desktop and screen (with source code)
Requirements: realize a silent photographing without displaying the interface, and can also switch the front and rear cameras and take photos through the volume keys in the rest screen state. After the photos are successfully saved, ther ...
Added by parms on Sat, 19 Feb 2022 16:17:13 +0200
Asynchronous loading - crawling dynamic data
catalogue
1, AJAX technology introduction
2, Introduction and use of JSON
1. Convert dictionary to JSON
2. Convert JSON to dictionary
3, Crawling dynamic data
1. Find in the web page source code
2. Use the Chrome check tool to find valid requests
3. Find the target link
4. Analyze the url structure
Get the data on the current page ...
Added by phertzog on Sat, 19 Feb 2022 16:13:55 +0200
Video streaming with flash
Video streaming with flash
Flash video stream
Streaming -- streaming
It enables flash applications to effectively break large responses into small pieces over a long period of time.
To illustrate this topic, I'll show you how to build a real-time video streaming server!
What is Streaming? (what is streaming media?)
Streaming is a ...
Added by biffjo on Sat, 19 Feb 2022 15:59:50 +0200
Design and implementation of mode algorithm
Problem Description:
Condition: given a multiple set s Containing n elements, the number of times each element appears in S is called the multiplicity of the element. The element with the largest multiplicity in the multiple set s is called mode. For example, S={1, 2, 2, 3, 5}. The mode of multiple set S is 2 and its multiplicity is 3.Note ...
Added by heropage on Sat, 19 Feb 2022 15:54:36 +0200
Introduction to Redis basic commands
If you already know the basic commands, you can This link View specific usage
Redis
Redis is the abbreviation of remote dictionary service, that is, remote dictionary service; Redis is an in memory database (data is stored in memory, and the main data in mysql is stored in disk), KV database (key value), and data str ...
Added by realjumper on Sat, 19 Feb 2022 15:44:35 +0200