我有一个类对象,其中包含一个接口变量,用于我不想序列化为 JSON 的回调。我试图使用@JsonIgnoreProperties()注释使其忽略接口变量,但到目前为止还没有运气。预处理器因IllegalArgumentException 窒息而无法猜测 CallbackRun ...
界面大致如下:
public interface callbackRun {
void runOnFinish();
}
我班级的粗笔画形状定义为:
@JSONMapper
@JsonIgnoreProperties(ignoreUnknown=true)
public class itemInventory {
public static itemInventory_MapperImpl MAPPER = new itemInventory_MapperImpl();
private static final List<item> itemList = new ArrayList<>();
private callbackRun responseHandler = null;
/ * other variables, getters setters here */
}
让 GWT-jackson-APT 忽略此接口的最佳方法是什么?还是我必须完全重新定义我的所有对象才能删除我的回调函数引用?
Smart猫小萌
相关分类