今天来用一个spring-data-redis封装好的redis队列功能。
首先要有个redis,没有去官网下载:https://redis.io/
基于springboot,省掉一些配置
首先在idea创建maven工程redis-message,目录结构如下
然后配置pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<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/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.xzg</groupId>
<artifactId>redis</artifactId>
<version>1.0-SNAPSHOT</version>
最后
以上就是紧张星月最近收集整理的关于用spring-data-redis实现redis消息队列教程的全部内容,更多相关用spring-data-redis实现redis消息队列教程内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复