[data structure] how to check weight efficiently in the case of large amount of data
Scene introduction
Originally there were 1 billion numbers, but now there are 100000 numbers. It is necessary to quickly and accurately judge whether these 100000 numbers are in the 1 billion number library?
Solution 1: store 1 billion numbers in the database and query the database. The accuracy is improved, but the speed will be relative ...
Added by raffielim on Mon, 31 Jan 2022 17:51:37 +0200
Spring boot case study: employee addition, deletion, modification and query page (fool teaching)
Spring boot case study: employee addition, deletion, modification and query page (fool teaching)
As the saying goes, no matter how many concepts you see, it's better to do a case study. This article will take you to learn and complete a Spring boot case.
To learn, we must first find the motivation before we have the perseverance to learn. If ...
Added by mwichmann4 on Sun, 30 Jan 2022 18:46:36 +0200
026_Scheduled timer
1. The scheduled timer is spring 3 0 comes with a timer.
2. Use maven to build a spring boot scheduled project called spring boot
3. Add coordinates that support Scheduled
4. pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ ...
Added by trparky on Sun, 30 Jan 2022 05:05:50 +0200
Redis details - SpringBoot integrates the use of redis, RedisTemplate and annotation
This article mainly talks about the use of Redis, how to integrate with SpringBoot project, and how to use annotation and RedisTemplate to realize caching. Finally, we will give a case that Redis is used to implement distributed locks in the second kill system.
For more practical application scenarios of Redis, please pay attention to the open ...
Added by majiclab on Sun, 30 Jan 2022 03:22:14 +0200
SpringBoot Learning Notes
Part I: A review of SpringBoot applications
1.1 Overview
Convention over Configuration, also known as programming by convention, is a software design specification.
Benefits: Configuration items are significantly reduced.
This idea runs through springboot.
springboot: With Spring Boot, you can easily create stand-alone, production ...
Added by gsaldutti on Sun, 30 Jan 2022 02:19:21 +0200
"Project documentary" -- mybatisplus multi data source read-write separation
Why is there such a need
Recently, we have an online project. Due to the large amount of read-write data, the pressure on the database increases, so now we plan to adopt the scheme of read-write separation.
How to solve it
The framework we use is springboot+mybatisplus, and it is an online project. It can not be transformed in large quan ...
Added by MrXander on Sat, 29 Jan 2022 23:20:12 +0200
[Stream] summary of new features of java8
1, What is stream
A new abstract interface Stream API is added in java8. Using Stream operation set is similar to using SQL statement to find data in database, providing intuitive methods for operation. Stream regards the set of elements to be processed as a stream, which is transmitted in the pipeline and can be processed by convection in t ...
Added by shlumph on Sat, 29 Jan 2022 11:15:12 +0200
Configuration management of Spring Cloud Kubernetes (with code implementation)
All along, people who play springcloud are basically playing springboot1 x. Many related components of spring cloud (Dalston version) are used for configuration center, service registration and discovery. The gateway uses LB made by Netflix for springboot, etc., but these things are too heavy and complex. In a k8s based iaas service system, it ...
Added by Zwiter on Sat, 29 Jan 2022 06:15:36 +0200
Best practice guide for integrating Swagger to automatically generate interface documents for SpringBoot project
Recently, Swagger was introduced into the project to support automatic document generation. It was found that many articles only introduced how to access and use. However, for the actual engineering practice, the corresponding best practice scheme is not given. Therefore, I reorganized the relevant contents and documents to sort out a set of be ...
Added by Bailz on Sat, 29 Jan 2022 05:29:29 +0200
SpringCloud, Eureka, service registration, project call between services
preface
This blog will introduce the establishment and simple use of Eureka registry of spring cloud, which is mainly divided into the following aspects:1. Overall structure of the project;2. Construction process and detailed explanation of each service;3. Simple call between Eureka services;
1, What is Eureka?
Eureka is the registra ...
Added by b2k on Sat, 29 Jan 2022 03:58:09 +0200