Java learning 12: Collections

12. Assembly 12.1 collective system Sets are mainly two groups (single column Set and double column Set). The Collection interface has two important sub interfaces List and Set. Their implementation subclasses are single column sets, and the implementation subclass of the Map interface is double column sets, which store K-V 12.2 Collection ...

Posted by tmyonline on Wed, 10 Nov 2021 12:01:11 -0800

[Spring framework] I finally understand ApplicationContext (detailed explanation of the case)

[Chen Xi should work hard]: hello, I'm Chen Xi. I'm glad you can read it. The nickname is that I hope I can constantly improve and move forward towards excellent programmers! The blog comes from the summary of problems encountered in the project and programming. Occasionally, there will be reading and sharing. I will continue to update the sum ...

Posted by DGaleDavid on Wed, 10 Nov 2021 11:40:21 -0800

New features of fat brother java12

String enhancement Java 12 further enhances string operations by adding two methods. String indent String indent(int n) indents the string according to parameter n. The specific rules are When n > 0, n spaces will be inserted at the beginning of each line of the string, and the whole string will move to the right.When n < 0, n spaces ...

Posted by Satabi2 on Wed, 10 Nov 2021 10:14:31 -0800

21 day good habit phase i-19

polymorphic What is polymorphism? Multiple forms and polymorphisms of the same thing in different scenarios can make the interface of functions universal. One of the three characteristics of object-oriented Advantages: clear code organization structure; Strong readability; It is conducive to early and later expansion and maintenance (based o ...

Posted by fmpros on Wed, 10 Nov 2021 08:24:33 -0800

Basic operation questions of java Level 2 examination

    The author bought the worry free java simulation problem in a treasure. After reading it, the evaluation said that after brushing, the little partner who hopes to pass the exam can pass it once. This is the basic operation problem brushed by the author. A total of 49 questions were repeated by the author   It's super simple ...

Posted by jake8 on Wed, 10 Nov 2021 08:08:49 -0800

thymeleaf template injection problem vulnerability

Introduction: thymeleaf is recommended as a template engine in Spring Boot because thymeleaf provides perfect spring mvc support. Thymeleaf is a java class library. It is a template engine of xml/xhtml/html5, which can be used as the view layer of mvc web applications. 1, Problem Description: the content displayed on the user page can be tampe ...

Posted by Cultureshock on Wed, 10 Nov 2021 07:21:25 -0800

Java IO learning note 8: multiplexing to Netty

Author: Grey Original address: Java IO learning note 8: multiplexing to Netty Multiplex multithreading The method is still a little troublesome. Netty helped us encapsulate it, greatly simplifying the coding complexity. Next, get familiar with the basic use of netty. Netty + implements a version of the code for communication between client a ...

Posted by Biocide on Wed, 10 Nov 2021 07:12:50 -0800

SpringBoot Learning Notes 6-SpringBoot log

preface Based on the official spring documentation, the official address is: Spring Boot At present, the latest official version is: 2.5.6 (this series of study notes is basically based on translation, so don't waste time expecting to get more. It's more a note made to show yourself the official documents) Content of the current chapter: in ...

Posted by lucidfx on Wed, 10 Nov 2021 06:14:29 -0800

C implementation recursion

1, Recursion The programming technique of program calling itself is called recursion Recursion can usually transform a large and complex problem layer by layer into a smaller problem similar to the original problem The main idea of recursion is to make big things small 2, Two necessary conditions for recursion There is a constraint. When thi ...

Posted by Tanus on Wed, 10 Nov 2021 06:07:33 -0800

The ranking algorithm that interviewers like to ask

prefaceAfter a year of self-study, JAVA ABA finally made an appointment for an interview. However, the interviewer asked her to talk about her understanding of sorting algorithm.Interviewer: do you know anything about algorithms? Sort this one, okay?ABBA ABBA: understand that the sorting algorithm mainly includes bubble sort, insert sort, Hill ...

Posted by darf on Wed, 10 Nov 2021 04:59:43 -0800