@JsonValue

@JsonValue 序列化時,調用方法序列化 當註釋掉 @JsonValue時 JsonModel jsonModel = new JsonModel(); jsonModel.setName("maqingbin"); jsonModel.setLoginCode("loginCode"); String targetVal = objectMapper.writeValueAsString(
相關文章
相關標籤/搜索