1. Project objectives
• simulate the implementation of a text-based interface "home accounting software" • master preliminary programming and debugging skills • it mainly involves the following knowledge points: definition of variables use of basic data types circular statement branch statement method dec ...
Posted by AdamBrill on Fri, 21 Jan 2022 19:38:02 +0100
Advanced function (2)
This is function advanced version 2.0, What will be introduced are the three concepts of iteratable object, iterator and generator and their usage, Only by understanding these three can we deepen our understanding of sequences.
In the previous article, we talked about many iteratable objects, For e ...
Posted by tyrol_gangster on Fri, 21 Jan 2022 19:31:16 +0100
In the last article, I focused on the concepts of control inversion and dependency injection in Spring. What are the ways of dependency injection? What are their advantages and disadvantages? I will explain them in detail in this chapter.
Spring dependency injection can be divided into attribute injection and object injection according to obje ...
Posted by OU_Student on Fri, 21 Jan 2022 13:38:17 +0100
1. What is annotation?
1. Concept Annotations in java are mainly used to mark code or combine other methods, such as reflection, to realize the transmission of values. In addition, annotations are also used more in the framework. There are seven kinds of annotations in java, including @ override, @ deprecated, @ suppresswarnings ...
Posted by gofer on Fri, 21 Jan 2022 13:27:16 +0100
Original: WeChat official account, welcome to share, reprint, please keep the source.
In the previous article, we analyzed the whole process of SpringBoot parsing yml configuration files from the perspective of source code. Today, let's talk about the actual combat and summarize the ways to read the contents of yml configuration files in add ...
Posted by bundyxc on Fri, 21 Jan 2022 13:12:16 +0100
In general, we often encounter a situation in the actual development process that we can continue only after meeting a condition. For example, when we use the production consumption model, the consumption service must have data consumption. If there is no data, wait. When the production thread generates data, wake up the consumption thread. The ...
Posted by CoffeeOD on Fri, 21 Jan 2022 12:32:55 +0100
1. What is reflection
1. First knowledge reflex
When I first started to learn reflection, I was confused. This thing is really "abstract mother opens the door to abstract - abstract is home."
Why do you need to get the Class object before creating an object? Isn't that unnecessary? Isn't it easier for me to new directly?
What is ...
RejectedExecutionException exception thrown by thread pool submission task on line
That is, the task submission performs the operation of reject policy. Check the business situation and thread pool configuration. It is found that the number of tasks executed in parallel is less than the maximum number of threads in the thread pool. Th ...
1. What is object-oriented
Programmers have transformed from process oriented executors to object-oriented commanders
1.1 ideas and steps of analyzing problems with object-oriented analysis method:
① select the real-world entity targeted by the problem according to the needs of the problem
② find the attributes and functions related to solv ...
Posted by sandbudd on Fri, 21 Jan 2022 02:59:41 +0100