重要点引入包别引用错了
java
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@JsonSerialize
@Data
public class Item {
@JsonProperty(value = "Token")
private String token;
}