pojo 转化json 指定转化后的字段名称
如:
@JsonProperty(value = "notify_url") private String notifyUrl;
序列化json 后,使用的是notify_url 为字段名称
第一:@JsonProperty 对应的 Jackson
使用 objectMapper.writeValueAsString()方法
第二: FastJson对应的注解: @JSONField
@JSONField(name = "notify_url")
private String notifyUrl;
使用 JSONObject.toJSONString()方法