mq:修复 KeyValue 不支持序列化,导致 rabbitmq 发送消息失败的问题

This commit is contained in:
YunaiV 2023-11-02 19:53:35 +08:00
parent 78869a9004
commit 1f12d253fd

View File

@ -1,10 +1,11 @@
package cn.iocoder.yudao.framework.common.core; package cn.iocoder.yudao.framework.common.core;
import com.google.common.base.Objects;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import java.io.Serializable;
/** /**
* Key Value 的键值对 * Key Value 的键值对
* *
@ -13,7 +14,7 @@ import lombok.NoArgsConstructor;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class KeyValue<K, V> { public class KeyValue<K, V> implements Serializable {
private K key; private K key;
private V value; private V value;