Elegant parameter verification in Spring/Spring Boot

Recently, when writing a project, every controller is filled with a large number of if to verify parameters, and each controller is different, so the verification method cannot be encapsulated Especially troublesome The most common approach is like this. We check each parameter of the request one by one through the if/else statement. if ( ...

Posted by ppowell on Thu, 10 Feb 2022 17:29:19 +0100

Basic concept of java Concurrent 01- thread

Basic concept of thread: Threads are different execution paths of the system. The following is an execution path: Each branch is a thread, and the program written before is a branch. Process: a program is a process that puts code into the code area, which is called a process Operating system scheduler Thread is a dynamic concept: multiple e ...

Posted by boofboof on Thu, 10 Feb 2022 17:27:49 +0100

[Object and package]

  catalogue View source code method Object class Definition and Application 1. toString() 2. equals( ) Packaging Definition and Application boxing and unboxing Self implementation of packaging class Let the Object class receive the basic data type through the wrapper class Object comparison of wrapper class Conversion between wrap ...

Posted by jokerofsouls on Thu, 10 Feb 2022 15:40:51 +0100

Java abstract classes and interfaces

I abstract class 1. What is an abstract class First, let's review an example mentioned in the previous article: printing graphics class Shape { public void draw() { // Don't do anything } } class Cycle extends Shape { @Override public void draw() { System.out.println("○"); } } class Rect extends Shape { @Over ...

Posted by jawaidpk on Thu, 10 Feb 2022 15:05:29 +0100

A thorough understanding of the ArrayList source code

prefaceArrayList is a List implemented by array. Compared with array, it has the ability of dynamic expansion, so it can also be called dynamic array.Any type of data can be stored in the ArrayList collection, and it is a sequential container. The order of stored data is consistent with the order we put it in, and it also allows us to put null ...

Posted by alexscan on Thu, 10 Feb 2022 14:53:29 +0100

What if the List set is unsafe under the condition of multithreading concurrency? The new colleague was directly confused by me

preface Some time ago, a new employee came to the company. He said that the new employee had been outsourcing code for one and a half years before he came to our company. Once I chatted with him about List. I casually asked him how to solve the unsafe multi-threaded concurrency of List collection when outsourcing. Unexpectedly, he looked at me ...

Posted by gdboling on Thu, 10 Feb 2022 13:19:36 +0100

On July 5, 2020, the test questions and detailed explanation of the first provincial competition of the 11th Blue Bridge Cup (group B of Java undergraduate course)

Results fill in the blanks (full score 5 points)Results fill in the blanks (full score 5 points)Results fill in the blanks (full score 10 points)Results fill in the blanks (full score 10 points)Results fill in the blanks (Full Score: 15 points)Programming (Full Score: 15 points)Programming (Full Score: 20)Programming (Full Score: 20)Program des ...

Posted by omarh2005 on Thu, 10 Feb 2022 12:07:00 +0100

Understanding of Java String class

⭐ Preface ⭐ ️ 🍉 Blog home page: 🍁 [warm the sun like the wind]🍁 🍉 Boutique Java column [Javase],[Java data structure] 🍉 Welcome to like 👍 Collection ⭐ Message comments 📝 Private letters must be answered 😁 🍉 This article was originally written by [Rufeng Wenyang], and was first launched in CSDN 🙉 🍉 Bloggers will continue ...

Posted by johnc71 on Thu, 10 Feb 2022 11:28:52 +0100

Five years after graduation, with an annual salary of one million, I have mastered the simplest and rudimentary methods of getting started with java

hello everyone! I am an old ape. I love technology. I have been in the Java industry for 7 years and am on the way to learn and share every day! thread 1. Introduction As we all know, multithreading brings us better resource utilization and better program response, so I won't elaborate on its introduction. You can search by yourself. I'm ma ...

Posted by livvylove on Thu, 10 Feb 2022 11:27:18 +0100

The most complete summary of JDK new features in history, covering jdk8 to jdk15!

preface In this article, I will describe the most important and developer friendly features of Java since version 8. Why do you have such an idea? On the Web, you can find many articles containing a list of new features for each java version. However, due to the lack of articles, it is not possible to briefly outline the most important changes ...

Posted by GundamSV7 on Thu, 10 Feb 2022 10:31:44 +0100