记得上下班打卡 | git大法好,push需谨慎

Commit 6d8a2755 authored by 胡佳晨's avatar 胡佳晨

修改 sweet

parent 805c6c70
package com.liquidnet.service.sweet.utils;
import com.liquidnet.commons.lang.util.CollectionUtil;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.connection.stream.StreamRecords;
import org.springframework.data.redis.core.StringRedisTemplate;
......@@ -17,16 +16,16 @@ public class QueueUtils {
@Autowired
StringRedisTemplate stringRedisTemplate;
/**
* 发送消息 - RABBIT
*
* @param exchange 交换机
* @param routeKey 路径
* @param jsonMsg Json字符串
*/
public void sendMsgByRabbit(String exchange, String routeKey, String jsonMsg) {
rabbitTemplate.convertAndSend(exchange, routeKey, jsonMsg);
}
// /**
// * 发送消息 - RABBIT
// *
// * @param exchange 交换机
// * @param routeKey 路径
// * @param jsonMsg Json字符串
// */
// public void sendMsgByRabbit(String exchange, String routeKey, String jsonMsg) {
// rabbitTemplate.convertAndSend(exchange, routeKey, jsonMsg);
// }
/**
* 发送消息 - REDIS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment