Use of Spring Data Redis Stream

1, BackgroundThe Stream type is a new type after redis5. In this article, we use Spring boot data redis to consume the data in Redis Stream. Realize independent consumption and consumption group consumption.2, Integration steps1. Import jar package<dependencies> <dependency> <groupId>org.springframework.boot</groupId& ...

Posted by awiedman on Thu, 11 Nov 2021 11:07:58 -0800

The principle of SpringBootStarter and customizing simple starter steps

1. Starter introduction Compared with spring, spring boot is much simpler in configuration. Its core lies in spring boot starter. When using spring boot to build a project, you only need to introduce the officially provided starter, which can be used directly without various configurations. Starter simply introduces some dependencies and initi ...

Posted by jbbadaz on Wed, 10 Nov 2021 15:08:10 -0800

Second kill system based on SpringBoot, Redis and RabbitMQ

Second kill system based on SpringBoot, Redis and RabbitMQ The main problems solved by seckill system: concurrent reading and concurrent writing. The core optimization concept of concurrent reading is to minimize the number of users "reading" data from the server, or let them read less data; The processing principle of concurr ...

Posted by swissmissflash on Wed, 10 Nov 2021 10:26:18 -0800

SpringBoot Learning Notes 6-SpringBoot log

preface Based on the official spring documentation, the official address is: Spring Boot At present, the latest official version is: 2.5.6 (this series of study notes is basically based on translation, so don't waste time expecting to get more. It's more a note made to show yourself the official documents) Content of the current chapter: in ...

Posted by lucidfx on Wed, 10 Nov 2021 06:14:29 -0800

Using Spring Boot to build reusable simulation modules

This article is translated from: Building Reusable Mock Modules with Spring Boot - ReflectoringIsn't it good to split the code base into loosely coupled modules, each with a set of special responsibilities?This means that we can easily find each responsibility in the code base to add or modify code. It also means that the code base is easy to m ...

Posted by agent_smith_sp on Mon, 08 Nov 2021 19:24:03 -0800

springboot quick reference

springboot notes Reference from http://c.biancheng.net/spring_boot/ Parent project dependency management <!--SpringBoot Parent project dependency management,spring-boot-starter-parent Is all Spring Boot The parent dependency of the project, which is called Spring Boot The version arbitration center can uniformly manage some commo ...

Posted by xluminex on Mon, 08 Nov 2021 10:01:48 -0800

docker builds hbase environment

    hbase is a member of hadoop ecology. To build hbase first, you need to install hadoop, then zookeeper, and then hbase. Now hbase can be installed directly through docker, and hadoop is not required in the container.     The installation is simple. Directly pull the image and run it. docker run -d --name hbase -p 2181 ...

Posted by Procode on Mon, 08 Nov 2021 08:11:30 -0800

Spring Boot implements code scanning login.

This way to achieve code scanning login is too sweet!!! If you need more tutorials, just scan the code on wechat           1, First you need a table Record who scanned the code. Who logged in. User_Token table The fields are as follows: uuid: used to ensure uniqueness userId: who logged in loginTime: login time createTime: the c ...

Posted by steviewdr on Sun, 07 Nov 2021 23:28:22 -0800

springBoot cross domain / file upload / mail

Learning objectives Cross domain requestFile uploadMail processing Cross domain request 1. How to understand cross domain What is cross domain? Cross domain refers to the mutual access between different domain names, which is determined by the browser's homology policy. It is a security measure imposed by the browser on JavaScript to preve ...

Posted by phpbeginner0120 on Sun, 07 Nov 2021 18:07:44 -0800

Canal Practice|First: SpringBoot integrates Canal + RabbitMQ to monitor MySQL databases for synchronous updates to Redis caches

Introduction to Canal canal [k] ə' Nl], meaning waterway/pipeline/ditch, primarily used for incremental log resolution based on MySQL databases, providing incremental data subscriptions and consumption Early Alibaba had the business requirement of synchronizing across computer rooms due to dual-room deployment in Hangzhou and the United States ...

Posted by veryconscious on Sun, 07 Nov 2021 09:02:39 -0800