Centos installs RabbitMQ, JavaSpring sends RabbitMQ delayed messages, and JavaSpring consumes RabbitMQ messages

1. Version description erlang and rabbitmq release notes https://www.rabbitmq.com/which-erlang.html Confirm the mq version that needs to be installed and the corresponding erlang version. 2. Download the installation file RabbitMQ download address: https://packagecloud.io/rabbitmq/rabbitmq-server Erlang download address: https://packagecloud.io/rabbitmq/erlang RabbitMQ delayed message plug-in download https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases Download the file as shown in the figure 3. Installation steps 3.1. Check…

Read More

Super detailed front-end and back-end practical projects (Spring series plus vue3) front-end and back-end articles (4) (step-by-step implementation + source code)

Brothers, following yesterday’s code, continue to complete the final user module development, Yesterday I completed the user information editing page. I will improve it today. Let’s start from the backend. Make an interceptor to verify the user’s identity. Interceptor Let me explain it first: Let’s use the interview questions to elaborate: **Interceptor related interview questions:…

Read More

Hongmeng development practice: network request library [axios]

Introduction [Axios] ,is a based on promise network request library,Can run node.js and in the browser。This library is based on[Axios]original libraryv1.3.4version to adapt,so that it can be run on OpenHarmony,and inherit its existing usage and features。 http ask Promise API request and response Interceptor Convert request and response of data data automatic conversion JSON data…

Read More

Springboot&redisson implements delay queue

Redisson implements delay queue Version Notes: spring boot 2.6.0 redisson-spring-boot-starter 3.28.0 1. Add dependencies & configuration <dependency> <groupId>org.redisson</groupId> <artifactId>redisson-spring-boot-starter</artifactId> <version>3.28.0</version> </dependency> application.properties spring.application.name=springboot-redis-delayed-queue-demo spring.redis.database=2 spring.redis.host=localhost spring.redis.password=123456 spring.redis.port=6379 2. Adding delayed tasks package cn.aohan.delayedqueue.provider; import cn.aohan.delayedqueue.model.DelayedTaskInfo; import cn.aohan.delayedqueue.model.TaskData; import org.redisson.api.RBlockingDeque; import org.redisson.api.RDelayedQueue; import org.redisson.api.RedissonClient; import org.redisson.codec.JsonJacksonCodec; import org.springframework.stereotype.Component; import java.util.Objects; import java.util.concurrent.TimeUnit; import java.util.function.Predicate; /** *…

Read More

25 Tips for Caring for a newborn

I want to share 25 essential newborn care tips that every new mom will find helpful. I had my first baby in 2021 and unexpectedly found myself pregnant again shortly after, so now I’m juggling caring for two little ones. Through this experience, I’ve learned a lot of tips that have made daily life with…

Read More

Solution to bundler requires Ruby version >= 2.3.0

The error is as follows: An error was reported during the installation of bundler; ERROR: Error installing bundler: bundler requires Ruby version >= 2.3.0. View current ruby ​​version ruby -v # 2.0 1. Install rvm curl -sSL https://get.rvm.io | bash -s stable source /usr/local/rvm/scripts/rvm 2. Check the known ruby ​​versions in the rvm library rvm…

Read More

[240623] Ruby from the perspective of ShellScript _ Tiobe 2406 – C++ is super C; Fortran is getting stronger with age

Table of contents @[TOC](Table of Contents) Ruby from a ShellScript perspective *Introduction Advantages of Ruby for Shell Scripting in conclusion Tiobe 2406 – C++ is super C; Fortran is getting stronger with time Ruby from a ShellScript perspective Introduction Ruby is often associated with the Rails framework, causing many people to overlook its power. Ruby…

Read More