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

pull/64/head
YunaiV 2023-11-02 19:53:35 +08:00
parent 78869a9004
commit 1f12d253fd
1 changed files with 3 additions and 2 deletions

View File

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