Stream streaming operation in Java 8 - Introduction
Author: Tangyuan
Personal blog: javalover.cc
preface
In the past, it was always called by friends, which was suspected of being close, so I'd better change the title for you later
Because people come to see things, let's call them officials for the time being (inspired by Jin Ping Mei, one of the four famous works spread among the people)
...
Posted by houssam_ballout on Fri, 04 Mar 2022 16:15:57 +0100
The 11th Blue Bridge Cup -- 2020 -- Java -- answers to group B original questions
Question A: House plate making
Problem solving ideas
from[1,2020]Cycle and accumulate all the time.
Code example
public class House plate making {
public static void main(String[] args) {
int sum = 0;
for (int i = 1; i <= 2020; i++) {
int x = i;
while (x > 1){
if(x % 10 == ...
Posted by mothermugger on Fri, 04 Mar 2022 15:46:41 +0100
M5 (project) - 01 - development document of distributed foundation of Shangsi Valley grain mall project
M5 (project) - 01 - development document of distributed foundation of Shangsi Valley grain mall project
Distributed Foundation
1, Environment construction
Installation of various development software
Virtual machine: docker,mysql,redis
Host: maven, idea (back end), vscode (front end), git,NodeJS
Version and installation process
Quickly b ...
Posted by sidney on Fri, 04 Mar 2022 15:31:16 +0100
Simple book management system (SSM framework integration + IDEA)
Book management system (SSM framework integration)
preface
The simple book management system implemented with SSM framework can carry out basic CRUD functions.
1, What is the SSM framework?
1.SSM
SSM (Spring + spring MVC + mybatis) framework set is integrated by spring and mybatis (spring MVC is part of spring), which is often used a ...
Posted by bokehman on Fri, 04 Mar 2022 15:14:12 +0100
Java-12 enumeration classes and annotations
Java-12 enumeration classes and annotations
1, Enum class (enum)
1. Use of enumeration class
1. Understanding of enumerating classes: there are only a limited number of objects in a class, which is uncertain. We call this class enumeration class 2. When you need to define a set of constants, it is strongly recommended to use enumeratio ...
Posted by frosty1433 on Fri, 04 Mar 2022 14:40:52 +0100
"Crazy learning of Java design patterns: prototype patterns"
"Crazy learning of Java design patterns: prototype patterns"
Mode type
The prototype pattern belongs to the creation pattern, which provides the best way to create objects.
Two, schema definition
Q: what is a prototype model?
Answer:
Prototype Pattern is to use prototype instances to specify the type of objects to be ...
Posted by saeeddeep on Fri, 04 Mar 2022 14:38:32 +0100
netty encoding and decoding and packet sticking and unpacking processing
netty encoding and decoding and packet sticking and unpacking processing
Codec
When you send or receive a message through Netty, a data conversion will occur. The inbound message will be decoded: from byte to another format (such as java object); If it is an outbound message, it will be encoded into bytes. Netty provides a series of practi ...
Posted by mise_me_fein on Fri, 04 Mar 2022 14:30:26 +0100
[computer network] - Protocol layering
1. Agreement: an agreement.
2. Protocol layering:
(1) OSI (open system interconnection) seven layer model
(2) TCP/IP five layer model
(3) TCP/IP four layer model
Layer namefunctionRelated agreementsapplication layerResponsible for communication between applications HTTP SSH DNS Display layerConvert the network datagram into the package req ...
Posted by mrpickleman on Fri, 04 Mar 2022 14:21:06 +0100
Using conditional lock to control the synchronization of multiple threads (java implementation)
catalogue
Title:
answer:
Explanation:
Recently, I did a topic of multithreading synchronization. I used conditional locking to solve it. By doing this problem, we can have a basic understanding of the application of locks. This article will briefly explain it.
Ps: after finishing, I found that this is the original question on Li buckle. T ...
Posted by moonman89 on Fri, 04 Mar 2022 13:34:38 +0100
Analysis of the whole process of SpringBoot application accessing Prometheus
Prometheus: Prometheus is an open monitoring solution. Users can easily install and use Prometheus and expand it
The following will implement the whole process of a SpringBoot application accessing Prometheus
1.2 installation
Linux Installation
Download package specified on the official website: https://prometheus.io/download/
Download loca ...
Posted by phpBeginner06 on Fri, 04 Mar 2022 13:27:44 +0100