[day08~10] basic understanding of Java object-oriented

object-oriented The essence of object-oriented programming is to organize code in the form of classes and encapsulate data in the form of objects 1. Relationship between class and object Class is an abstract data type. It is the overall description / definition of a certain kind of transaction, but it can not represent a specific thing Pe ...

Added by bluejay002 on Sun, 20 Feb 2022 19:03:53 +0200

Getting started with spring boot and yaml configuration

Getting started with SpringBoot Create a SpringBoot project: file new project, click Spring Initializr on the left in the figure, and then just fill in the project name and other information. After creation, a startup class of SpringBoot project will be automatically produced: @SpringBootApplication public class SpringbootDemo01Application ...

Added by wacook on Sun, 20 Feb 2022 18:30:50 +0200

Manually build the starter component

As mentioned in previous posts, try to use starter related dependencies. Because these related dependencies will configure related classes according to the configuration file. For example, redis is integrated in Spring. In rapid development, Spring boot starter data redis dependency is recommended. It will configure redisTemplate and other rela ...

Added by undertow on Sun, 20 Feb 2022 18:18:20 +0200

Design pattern (based on crazy monk Silicon Valley)

1. Object oriented principle Principle of single responsibility: That is, a class should be responsible for only one responsibility. For example, class A is responsible for two different responsibilities: Responsibility 1 and responsibility 2. When a is changed due to the change of responsibility 1 requirements, the implementation e ...

Added by ChemicalBliss on Sun, 20 Feb 2022 17:31:00 +0200

java code implementation of merging and sorting

Merge sort is a divide and conquer algorithm. Using recursion, a large data set is decomposed into small subsets. The subsets are ordered and then merged. Merge sort is not an in-situ sort algorithm because it uses temporary space, which is also the main reason why merge sort is not widely used in quick sort. Although the time complexity of mer ...

Added by bb_sarkar on Sun, 20 Feb 2022 17:28:19 +0200

Real time communication chat program -- java network programming

Use TCP to transmit data, write the program of client and server, and realize the real-time communication between the two programs. In each program, the function of sending and receiving data in real time is realized. io interface of client Server side io interface io demo The program takes ...

Added by daneilair on Sun, 20 Feb 2022 16:50:53 +0200

Solve the problem of duplicate form submission

Prevent form resubmission 1, Problem background The return function of the current management platform supports the function of uploading return excel and inserting return order records into the return order table. According to the feedback of the operation colleagues, when uploading the return excel, the return order form has duplicate retur ...

Added by insane on Sun, 20 Feb 2022 16:31:28 +0200

Set the security of API interface

1, AbstractIn the actual business development process, we often encounter the need to carry out technical docking with the third party Internet Co, such as Alipay payment docking, WeChat payment docking, High German map query docking and other services. If you are an entrepreneurial Internet, most of them may be connected to other companies api ...

Added by Lillefix on Sun, 20 Feb 2022 15:47:14 +0200

Collections class operation collection

Collections class operation collection Collections class is a tool class for manipulating collections such as Set,List and Map provided by Java. Collections provides many static methods for manipulating collections, with which collection elements can be implemented Sort, find, replace, and copy. The following describes the methods commonly use ...

Added by leeue on Sun, 20 Feb 2022 14:48:56 +0200

SystemUI system status bar status bar analysis (Android o)

System status bar status bar analysis (Android o) 1 Overview In the system UI, the status bar provides users with some quick information display and function operation. The user can display more information on the screen in a reasonable way through the drop-down bar. On the 848 platform, there are two configurable status bars: StatusBar a ...

Added by slick101 on Sun, 20 Feb 2022 14:16:23 +0200