mq:修复 KeyValue 不支持序列化,导致 rabbitmq 发送消息失败的问题
parent
78869a9004
commit
1f12d253fd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue