Enumeration, annotation, reflection

enumeration Format of enumeration Permission modifier enum enumeration name{               Example 1, example 2, example 3, example 4; } package com.meiju; public enum Level2 { LOW(1),MEDIUM(50),HIGH(100); private int levelValue; private Level2(int levelValue){ this.levelValue=le ...

Posted by zulfiboy on Mon, 06 Dec 2021 22:42:21 -0800

MacBook Air M1 is configured with java development environment Maven + IDEA

MacBook Air M1 is configured with java development environment Maven + IDEA 1. JDK configuration At present, Zulu JDK supports M1 chip. Download Azul Zulu Builds of OpenJDK After downloading, click Install and follow the steps. After that, enter java -version on the console openjdk version "17.0.1" 2021-10-19 LTS OpenJDK Runtime Environment ...

Posted by slicer123 on Sun, 05 Dec 2021 19:42:49 -0800

The simplest IO understanding

IO stream First, we should understand external memory, memory and cache io is divided into input and output: Personal understanding: Output stream: output the file from the idea Input stream: read the file to the idea Input and output can be divided into: Byte stream: the smallest data unit in a data stream is bytes Output: OutputSt ...

Posted by BinaryDragon on Fri, 03 Dec 2021 11:47:35 -0800

MyBatis learning notes 5 - multi table query

Preparation for multi table query: three tables are created. Previously used user table, newly created role table, account table, user_role table. The specific parameters in the table are as follows: user table (mainly the header, which is filled in by itself): role table: account table: user_role table: After these classes are created, r ...

Posted by dhiren22 on Fri, 03 Dec 2021 06:06:01 -0800

Hadoop2.6.0+Linux Centos7+idea environment: MapReduce second degree friend recommendation case

Catalog 1. Problem Description 2. Writing Code + Packaging Project in intellij idea 3. Upload jar package to Linux in xftp 4. Preparing input data + Running jar package + Viewing input results in hadoop 1. Problem Description With MapReduce, for each user, A suggests 10 users who are not friends with A, but have the most common friends w ...

Posted by ADLE on Thu, 02 Dec 2021 11:32:51 -0800

shell script deployment springboot (Revised)

shell script deployment springboot (Revised) explain The shell deployment springboot was sorted out before website: https://blog.csdn.net/shaoming314/article/details/120145215 However, the shell script does not have the option to stop, view and restart the service. It is not very good. This revision supports the options of stopping, restart ...

Posted by vchris on Tue, 30 Nov 2021 07:31:31 -0800

My first JDBC program (to realize the addition, deletion, modification and query of data table) and error analysis and solution.

1. Define your own database and data table 2. Access the defined data table through JDBC and insert 2 records. Requirements: 1. Submit SQL statements defined in database and data table; 2. Submit program implementation process; 3. Submit program running results. This is a small class assignment assigned by my teacher. What is JDBC JDBC(Jav ...

Posted by Lucnet on Sat, 27 Nov 2021 21:47:13 -0800

Getting started with HTTP protocol

HTTP protocol Chapter 1 Introduction to HTTP protocol [the external chain image transfer fails. The source station may have an anti-theft chain mechanism. It is recommended to save the image and upload it directly (img-grbtid56-1637415789041) (Shang Silicon Valley Zhang Chunsheng _httpprotocol. assets/timg.jpg)] HTTP hypertext transfer ...

Posted by phpsharma on Mon, 22 Nov 2021 02:28:51 -0800

Java basic syntax

Key points of Java basic syntax Type conversion 1. Basic data type Conversion In Java programs, the values of different basic data types often need to be converted to each other. The seven numeric types provided by java language can be converted to each other. There are two conversion methods for basic data type conversion: automatic typ ...

Posted by Kibeth on Fri, 19 Nov 2021 08:40:57 -0800

Using springboot to do a computer mall project, the next day

User login 1 user login persistence layer Learning video address [actual combat full version of SpringBoot project] actual combat of SpringBoot+MyBatis+MySQL computer mall project_ Beep beep beep_ bilibili 1.1 planning SQL statements to be executed The SQL statement to be executed by the user login function is to query the user data accordi ...

Posted by el_quijote on Thu, 18 Nov 2021 06:57:11 -0800