Day05 process control statement
Process control statement
Sequential structure word order
/* Process control statement: Sequential structure statement: relatively simple The code is loaded from top to bottom (from the beginning of writing HelloWorld, it is a sequential structure statement) Select structure statement Circular structure statement
*/ //The jvm loads this ...
Added by brmcdani on Wed, 05 Jan 2022 10:44:07 +0200
Annotation and reflection
01. What is annotation
Annotation is from jdk5 New technologies introduced from 0Function of Annotation
Not the program itself, you can explain the program (this is no different from comments)It can be read by other programs (such as compiler, etc.) Format of Annotation
Annotations exist in the code as @ annotation name. You can also add ...
Added by mattcass on Tue, 04 Jan 2022 13:29:40 +0200
Java EE learning route -- two important contents of java basic syntax method: overloading and parameter passing
1. Method overload
1.1 method overload
Method overload concept Method overloading refers to the relationship between multiple methods defined in the same class. Multiple methods that meet the following conditions constitute overloading with each other
Multiple methods in the same classMultiple methods have the same method nameMultiple ...
Added by jakeklem on Mon, 03 Jan 2022 09:09:58 +0200
java date time
1. Date class
java. The util package provides a Date class to encapsulate the current Date and time. The Date class provides two constructors to instantiate a Date object.
constructor
date(): get the number of milliseconds from January 1, 1970
Methods in Date
Long getTime(): get timestamp (i.e. milliseconds)
int compareTo(Date ...
Added by genics on Mon, 03 Jan 2022 00:40:39 +0200
Understanding of Spring control inversion - understanding of IOC
Let's give a small example to illustrate what is control inversion IOC?
In the initial stage, we write code as follows:
Create a new UserDao and its implementation class
public interface UserDao {
void save();
}
public class UserDaoImpl implements UserDao {
public void save() {
System.out.println("UserDao.save");
}
}
...
Added by bob2588 on Sat, 01 Jan 2022 17:05:07 +0200
Java EE learning route -- object oriented Foundation
1. Member variables and local variables
1.1 differences between member variables and local variables
Different positions in the class: member variable (outside the method in the class) local variable (inside the method or on the method declaration)Different locations in memory: member variables (heap memory) local variables (stack memory) ...
Added by ninedoors on Fri, 31 Dec 2021 21:35:08 +0200
Which of the seven distributed global ID generation strategies do you prefer?
After microservices, many originally simple problems have become complex, such as global ID!
Brother song just used this content in his recent work, so he investigated several common global ID generation strategies on the market and made a comparison for his partners' reference.
After the database is divided into databases and tables, the ...
Added by Kaitosoto on Thu, 30 Dec 2021 07:37:43 +0200
Super detailed!!! Complete knowledge points of SpringCloud (including Eureka, Zookeeper, Consul, Ribbon, Openfeign and Hystrix)
All supporting materials have been uploaded to QQ group: 167356412; if necessary, the group file can be obtained by yourself
Spring Cloud China community official website: http://springcloud.cn
Spring Cloud China Community Forum: http://bbs.springcloud.cn
Spring Cloud China community documentation: http://docs.springcloud.cn
1, Introduc ...
Added by BIGjuevos on Thu, 30 Dec 2021 01:51:43 +0200
Learning IO flow in Java
catalogue
1.File class
Basic functions of File class
2.IO flow
Classification of IO
Byte stream - output
Byte stream try catch finally catch exception
Byte stream - input
Buffer stream
Character stream - encoding table
Character stream - write out data
Character stream - read data
Buffer stream
Conversion flow
Object operati ...
Added by Sphen001 on Wed, 29 Dec 2021 17:40:10 +0200
Mybatis self study note sharing (many to one and one to many processing)
Continued →
7. Many to one processing
Many to one understanding:
Multiple students correspond to one teacher For students, it is a many to one phenomenon, that is, a teacher is associated with students!
Database design
CREATE TABLE `teacher` (
`id` INT(10) NOT NULL,
`name` VARCHAR(30) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=I ...
Added by bfuzze_98 on Wed, 29 Dec 2021 16:10:55 +0200