[Yugong series] December 2021 Java Teaching Course 26 - detailed explanation of common API methods

1, Detailed explanation of common API methods 1.API 1.1 API Overview - use of help documents What is an API API (Application Programming Interface): application programming interface API in java It refers to Java classes with various functions provided in the JDK. These classes encapsulate the underlying implementation. We don't need ...

Added by vbmurray on Wed, 29 Dec 2021 20:29:33 +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

Application practice of 06 sentinel current limiting fuse

catalogue Sentinel introduction Background analysis Sentinel overview Installing Sentinel services Access Sentinal services Sentinel current limiting primer summary Preparatory work Sentinel current limiting introduction practice Section interview analysis Sentinel flow control rule analysis Threshold type Set current limiting mo ...

Added by nhan on Wed, 29 Dec 2021 16:02:32 +0200

java object-oriented 1

Process-Oriented and Object-Oriented Design Ideas Process-oriented and object-oriented (both linguistic design ideas): Process oriented programming (POP): Focus on specific processes to solve problems step by step. object oriented programming (OOP): Design first, classify the objective things in reality, create classes (define functions in c ...

Added by angelena on Wed, 29 Dec 2021 08:35:11 +0200

It's almost the Spring Festival. A fireworks show is implemented in Python

The pace of the Spring Festival is getting closer and closer. During the Spring Festival, many places will set off fireworks to increase the festival atmosphere. However, due to the intensification of environmental pollution, fireworks have been banned in many places in recent years. In order to make up for this regret, in this article, we will ...

Added by chyan on Wed, 29 Dec 2021 08:15:52 +0200

Django's Road to Learning - Basic

1. Django Project Creation 1. Project structure 1.1. settings.py file """ Django settings for mydemo project. Generated by 'django-admin startproject' using Django 3.1.7.<django Version For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see ...

Added by monkeynote on Wed, 29 Dec 2021 07:55:56 +0200

OMG! Summary of common Java classes

import java.util.ArrayList; public class Test { public static void main(String[] args) { Object obj1 = new Object(); Object obj2 = new Object(); System.out.println(obj1.hashCode()); // 460141958 System.out.println(obj2.hashCode()); // 1163157884 String str = new String(); Sy ...

Added by beeman000 on Wed, 29 Dec 2021 06:31:20 +0200

Go Quiz: see the underlying principles and precautions of slice from the go interview questions

Interview questionsRecently, the author of Go 101 released 11 Go interview questions, which are very interesting. He plans to write a series to analyze each question in detail. Welcome your attention.You can look at the following question about slice. Through this question, we can have an in-depth understanding of the characteristics and precau ...

Added by Perad on Wed, 29 Dec 2021 03:24:41 +0200

SpringBoot technology practice - SpringRetry retry framework to check deficiencies and fill gaps

} } 1. stay controller Medium injection RetryTemplate It can also be used in service in @RestController public class SpringRetryController { @Resource private RetryTemplate retryTemplate; private static int count = 0; @RequestMapping("/retry") public Object retry() { try { count = 0; retryTemplate.exec ...

Added by jokerfool on Wed, 29 Dec 2021 02:59:34 +0200

Step by step learning Java chapter 27 regular expressions

Chapter 27 regular expressions 878. Regular quick start // Pattern object Pattern pattern = Pattern.compile("[0-9]+"); // Matcher object Matcher matcher = pattern.matcher(content); // Loop matching while (matcher.find()) { System.out.println(matcher.group(0)); } 879. Demand issues 880. Regular underlying implementation 1 881. Regular u ...

Added by whatever on Tue, 28 Dec 2021 23:06:17 +0200