fix(Claiming devices): resolve SerializationFailedException

when use redis as the cache, this
interface
http(s)://host:port/api/v1/$ACCESS_TOKEN/claim  throw
a
SerializationFailedException but ignored by AbstractTransformFuture
,and when do  Device Claiming API
Request(http(s)://host:port/api/customer/device/$DEVICE_NAME/claim),the
system show :Failed to claim the device
This commit is contained in:
hanyuepeng 2021-07-21 13:03:10 +08:00
parent ee62dbf771
commit d3c51ca1c7

View File

@ -18,9 +18,11 @@ package org.thingsboard.server.dao.device.claim;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import java.io.Serializable;
@AllArgsConstructor @AllArgsConstructor
@Data @Data
public class ClaimData { public class ClaimData implements Serializable {
private final String secretKey; private final String secretKey;
private final long expirationTime; private final long expirationTime;