Structure of java class 2: Method - (12)
Class design, the second of two important structures: method
Method: describe the function that the class should have.
For example: Math class: sqrt()\random() Scanner Class: nextXxx() ...
Arrays Class: sort() \ binarySearch() \ toString() \ equals() \ ...
1. Examples:public void eat(){}public void sleep(int hour){}public String getName(){ ...
Posted by Link on Thu, 24 Feb 2022 02:58:59 +0100
JAVA basic syntax
1.JAVA escape characters -- common escape characters
\t: A tab stop to realize the alignment function \n: Line feed \: one\ \: one \': one' \r: A carriage return System.out.println("Digital and efficient office\r information"); \\Information efficient office
System.out.println("Digital and efficient office\r\n information"); \\Digita ...
Posted by gorskyLTD on Thu, 24 Feb 2022 01:49:20 +0100
Java crawler crawls Jingdong Mall
1, Task:
The purpose is to extract various commodity information in the network by using java crawler, establish a unified data model to store data, and describe the basic attributes of commodities through the data model. Such as spu, sku, product description, price and other information. At the same time, it is necessary to eliminate unnecess ...
Posted by -Karl- on Wed, 23 Feb 2022 17:33:41 +0100
Understanding the principle of automatic configuration in SpringBoot learning notes
Understand the principle of automatic configuration
1. SpringBoot features
1.1. Dependency management
Dependency management of parent project
Dependency management
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version ...
Posted by vintox on Wed, 23 Feb 2022 16:51:00 +0100
Ioc and annotation development
Ioc and annotation development
1. Spring configuration data source
1.1 function of data source (connection pool)
Data source (connection pool) is the key to improve program performanceInstantiate the data source in advance and initialize some connection resourcesGet from data source when using connection resourcesReturn the connected res ...
Posted by ITEagle03 on Wed, 23 Feb 2022 16:19:04 +0100
JAVA network programming
Section I overview of network communication
1.1 software structure
Network programming is a program that realizes the communication between two computers under a certain protocol
C/S structure: the full name is Client/Server structure, which refers to client and server structure. Common programs include QQ... And other software B/S struct ...
Posted by thumrith on Wed, 23 Feb 2022 16:01:20 +0100
With so much knowledge of java, how to learn it well---- Remember the role, find the core category, breakthrough, see the name and know the meaning
✿ let's take learning introspection mechanism and reflection as an example
1. Learn new knowledge points - remember the function (first understand what it is, what is the connection and function with the previous knowledge points)
(1) What is reflection first? [briefly understand and compare the official description]
Simple understanding: r ...
Posted by mpiaser on Wed, 23 Feb 2022 15:37:43 +0100
FixBug diary: I was bitten by some tools
preface
I've been interfacing with some platforms recently, and then I use restTemplate to request First of all, of course, according to the document, and then postman to adjust it. They are all successful. Good ~ then, I use this tool to realize remote call, and then always report that contentType is not supported, but I have set the same ...
Posted by ShadowIce on Wed, 23 Feb 2022 15:34:17 +0100
Single architecture project development: JSON and Ajax
1,JSON
1.1 JSON description
JSON(JavaScript Object Notation) JavaScript object notation (JSON comes from JS).JSON features:
JSON is a lightweight data exchange format.JSON adopts a text format that is completely independent of the language, which means that the JSON data of different programming languages are consistent.JSON is easy fo ...
Posted by reeksy on Wed, 23 Feb 2022 15:15:41 +0100
Java knowledge point 03 - object oriented 02 (wrapper class, final keyword, abstract class, interface, internal class, Lambda, enumeration class, functional interface, Stream API)
Statement:
The information comes from your own arrangement.Reference book crazy Java handout (Fifth Edition) Li Gang © Write
1, Packaging
1.1 general
Java provides two type systems: basic type and reference type. Using basic type is efficient. However, in many cases, objects will be created for use, because objec ...
Posted by Addos on Wed, 23 Feb 2022 14:31:34 +0100