Learning notes of IO stream

1.IO stream classification According to the direction: input stream (such as the file you copied) output stream (such as the new file you copied) By unit: byte stream (data transmission in bytes) Character stream (data transmission in characters char) According to function: node flow (equivalent to needle) filter flow (equivalent to needle ...

Added by stageguys on Sat, 26 Feb 2022 11:48:24 +0200

First encounter in Spring transaction learning notes

prefaceIn introduction to database transactions and learning notes on MySQL transactions (I), we have discussed transaction related concepts, transaction related operations, how to start a transaction, rollback, etc. How should we do the transaction operation in the program. In Java, transactions are controlled through JDBC API. This method is ...

Added by Imperialdata on Sat, 26 Feb 2022 11:06:27 +0200

Spring MVC is the way of JAVA architecture. Master spring MVC easily.

1. Text 1. What is MVC architecture? 2. What is the spring MVC framework? 3. Why use spring MVC architecture? 4. Quick start spring MVC? 5. The process of spring MVC. 6. How spring MVC accepts the requested parameters. 7. How does spring MVC forward the parameters of the control layer to the front-end page? 2. What is MVC architecture? ...

Added by MikeTyler on Sat, 26 Feb 2022 09:27:00 +0200

MongoDB entry practice - Installation

This article mainly introduces the installation of MongoDB and the software versions used: MongoDB 5.0.5 and Centos 7.6. 1. Stand alone installation 1.1. Download and unzip MongoDB Download address: https://www.mongodb.com/try/download/community Decompression: tar zxvf mongodb Linux x86_ 64-rhel70-5.0.5. tgz 1.2. Create data and log direct ...

Added by Jamesm on Sat, 26 Feb 2022 08:55:06 +0200

Collect and monitor asynchronous task error logs

1, Requirement description When encountering a task at work, conduct error log monitoring on the asynchronous tasks executed in the thread pool opened in the scheduled task to ensure that the scheduled task can run normally, or when the first exception occurs, the operation and maintenance personnel can quickly find the problem task through th ...

Added by LowEndTheory on Sat, 26 Feb 2022 08:38:44 +0200

Differences between Java--synchronized and Lock and examples of their use

1. Classification of Java locks (reference link: https://tech.meituan.com/2018/11/15/java-lock.html ) (1) Optimistic lock VS pessimistic lock: * * optimistic Lock: * * Lock the data first to ensure that the data will not be modified by other threads. The synchronized keyword and the implementation class of Lock are pessimistic locks. It is su ...

Added by deepakagrawal1982 on Sat, 26 Feb 2022 05:43:46 +0200

The most complete notes of SpringBoot are collected and learned slowly~

For Java developers, no one dares to underestimate the importance of Spring Boot. Now when you go out for an interview, no matter how small a company or project, you have to talk about Spring Boot and micro services. If you can't chew it down, you may miss the big factory. If you are proficient in the principle and implementation of Spring Boo ...

Added by CoderDan on Sat, 26 Feb 2022 05:06:58 +0200

Reflection mechanism of java

I What is reflection Reflection is a dynamic mechanism in java, which allows us to determine the instantiation of objects and the call of methods during the running of programs, Property operation, etc. The flexibility of the program is greatly improved, but it also brings more resource overhead and lower cost Operation efficiency. ...

Added by drummer101 on Sat, 26 Feb 2022 05:02:44 +0200

Spring MVC Chapter 15 uploading spring MVC files

The file upload of Spring MVC framework is based on the Commons fileUpload component, which is further encapsulated, which simplifies the code implementation of file upload and eliminates the programming differences of different upload components. MultipartResolver interface It is very easy to upload files in Spring MVC. It provides dire ...

Added by Liz_SA on Sat, 26 Feb 2022 04:36:05 +0200

Design mode 3: single case mode

1, Overview of design patterns 1.1 introduction to design mode Design pattern is the useful experience that programmers have summed up in the face of similar software engineering design problems. Pattern is not code, but the general knowledge of a certain kind of problems With solutions, design patterns represent best practices. These so ...

Added by darktimesrpg on Sat, 26 Feb 2022 04:22:32 +0200