Mybatis complex mapping
Variable parameters
The location of method parameters in java supports one syntax
Method name ([type]... Variable name) The above expression is variable parameter
//Declare a method with variable parameters
public void sum(int... nums){
//Parameter... Indicates that the variables specified by this parameter are processed as an array
...
Posted by Ghost_81st on Sun, 24 Oct 2021 20:59:16 -0700
2021-10-18 byte stream of IO stream
catalogue
IO stream overview and classification
Overview of IO streams
IO stream classification
Byte stream
Byte stream write data
Byte stream abstract base class
FileOutputStream: the File output stream is used to write data to File
To write data using a byte output stream
Three ways to write data in byte stream
Byte stream ...
Posted by sasori on Sun, 24 Oct 2021 20:46:27 -0700
Spring cloud Alibaba: introduction to nacos configuration center
Spring cloud Alibaba: introduction to nacos configuration center
1, Introduction to configuration center
1. Introduction
Nacos provides key/value storage for storing configuration and other metadata, and provides server-side and client-side support for externalized configuration in distributed systems. Using Spring Cloud Alibaba Nacos Config ...
Posted by Raider on Sun, 24 Oct 2021 20:00:04 -0700
Alibaba recommended thread pool creation method
Executor is not recommended The Executors class provides us with various types of thread pools. The frequently used factory methods are:
public static ExecutorService newSingleThreadExecutor()
public static ExecutorService newFixedThreadPool(int nThreads)
public static ExecutorService newCachedThreadPool()
public static ScheduledExecutorServic ...
Posted by murtoz on Sun, 24 Oct 2021 18:06:51 -0700
Simple use of JSON
JSON
1, What is JSON?
The full name of JSON is JavaScript object notation. JavaScript object notation is a data structure that replaces XML. Now JSON is mostly used to store and exchange the syntax of text information for data transmission. JSON is smaller, faster and easier to parse than XML. Moreover, the JSON parser and JSON library suppor ...
Posted by webbwbb on Sun, 24 Oct 2021 13:09:02 -0700
The Minio Java framework for object storage spring cloud encapsulates the Minio SDK as an http interface
preface
Due to the needs of the project, binary files such as audio and images need to be stored. These files cannot be stored in the database. HBase has been used for audio storage before. However, HBase's api is too complex to use
There is also fastdfs for file storage, but the installation and configuration is very complex. Later, I found ...
Posted by Canadian on Sun, 24 Oct 2021 13:04:21 -0700
Java learning notes 18 -- generics of collection classes
Java programming foundation penultimate article, thank you for not giving up yourself. This column is temporarily over, and the next step is to fix the algorithm. Zhang Huansheng, editor in chief of the reference book "Fundamentals of Java programming". The content of this book is more suitable for beginners without any foundation. Th ...
Posted by slickboyj on Sun, 24 Oct 2021 12:15:30 -0700
Fundamentals of java language
IDE (integrated development environment):
Including code editor, compiler, debugger, graphical interface and other tools.
Common integrated development environments:
IDEA
eslipse
java language comments:
Note: describe the function of the code and mark it with specific symbols
1. Single line comment (shortcut key: ctrl + /): / / describe ...
Posted by nishanthc12 on Sun, 24 Oct 2021 12:09:03 -0700
14, Combination mode
0. Ma Xian inspirational
It is not circumstances that make people, but man-made circumstances.
1. General
I'm sure I'll be very familiar with this picture. The above figure can be regarded as a file system. For this structure, we call it a tree structure. In the tree structure, we can traverse the whole tree by calling a method. When w ...
Posted by nike121 on Sun, 24 Oct 2021 11:01:41 -0700
16, Template method pattern
0. Ma Xian inspirational
Loneliness does not give others the opportunity to pity you, but gives you the opportunity to find yourself stronger.
1. General
In the process of object-oriented programming, programmers often encounter this situation: when designing a system, they know the key steps required by the algorithm and determine the e ...
Posted by Call-911 on Sun, 24 Oct 2021 10:49:50 -0700