JDK1.8-Stream() usage details

Why do I need Stream As a highlight of Java 8, stream is similar to Java InputStream and OutputStream in io package are completely different concepts. It is also different from the stream of XML parsing by StAX, nor is it the stream of real-time processing of big data by Amazon Kinesis. Stream in Java 8 is an enhancement of the function of ...

Added by DiscoTrio on Tue, 08 Mar 2022 16:27:54 +0200

Observer mode of 23 design modes

Observer mode of 23 design modes reference material Java design patterns: comprehensive analysis of 23 design patterns (super detailed)Han Shunping's Java design pattern (illustration + framework source code analysis) Qin Xiaobo's Zen of design pattern Please correct any mistakes and omissions below 1, Introduction definition It refer ...

Added by allenskd on Tue, 08 Mar 2022 16:18:35 +0200

Message queuing Kafka

Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications. 1 Overview 1.1 basic concepts 1.1.1 Topic By classifying messages through Topic mechanism, we can think that each Topic is a queue ...

Added by kidestranged on Tue, 08 Mar 2022 16:16:47 +0200

Getting started with spring security

SpringSecurity Related concepts Principal [user or device using the system or user logging in remotely from other systems, etc. in short, whoever uses the system is the principal.] Authentication [the authority management system confirms the identity of an entity and allows the entity to enter the system. In short, it means that the &quo ...

Added by bb_xpress on Tue, 08 Mar 2022 15:41:53 +0200

mybatis series summary

1. Introduction 1.1 what is mybatis ● MyBatis is an excellent persistence layer framework ● it supports custom SQL, stored procedures and advanced mapping. ● MyBatis eliminates almost all JDBC code and the work of setting parameters and obtaining result sets. MyBatis can configure and map primitive types, interfaces and Java POJO s (Plain Old ...

Added by adrianl on Tue, 08 Mar 2022 14:11:44 +0200

Summary of the second week

1, Array; Copy: system arraycopy(a,1,b,0,4);             int[ ] b = Arrays.copyOf(a,6);Sorting: arrays sort(arr); // Ascending order (from small to large) 2, Method:   Encapsulate a specific business logic functionBe as independent as possible and do only one thing in one wayMethod can be called repeatedlyReducing code duplication is condu ...

Added by amandas on Tue, 08 Mar 2022 13:17:38 +0200

obtainFreshBeanFactory of Spring startup process source code

Invokebeanfactoryprocessors is a very important method in Spring startup. We need to understand several concepts before parsing the source code of this method. 1, BeanDefinition 1.1. Instantiation of common objects We know that ordinary java files will be compiled into java files when Java runs When we instantiate an object into memory, we u ...

Added by sara_kovai on Tue, 08 Mar 2022 13:06:07 +0200

Still using recursion, try iteration

Recursion & iteration recursion Recursion is often used to describe the process of repeating things by self similar method. In mathematics and computer science, it refers to the method of using function itself in function definition. (A calls A) iteration Repeat the activity of the feedback process, and the result of each iteration will ...

Added by scrypted on Tue, 08 Mar 2022 11:56:51 +0200

Understanding of ChangeStream function of Mongo database

Only in cluster mode mongo Can be used changeStream The function of, This function is mainly to monitor in real time mongo Changes to the database, And obtain the changed information, changeStream The principle is to monitor all the time mongo of opLog Log changes to this file, To read this file, as we all know, we have mongo The database will ...

Added by avario on Tue, 08 Mar 2022 11:17:43 +0200

Multithreading -- producer and consumer issues

Problem: a classic case of multithreading is the problem of producers and consumers To operate the same resource together is to produce one product and consume another, which must take into account the safe synchronization of threads How to realize thread safety in multithreading and ensure the unity of resources In the producer and consumer p ...

Added by dankus on Tue, 08 Mar 2022 10:56:22 +0200