parse(字符串转对象)的时候 设置下划线转驼峰
ParserConfig.getGlobalInstance().propertyNamingStrategy = PropertyNamingStrategy.SnakeCase;
JSON.parseObject(str, RespOrderDTO.class);
toString(对象转字符串)的时候,设置驼峰转下划线
SerializeConfig config = new SerializeConfig();
config.propertyNamingStrategy = PropertyNamingStrategy.SnakeCase;
String json = JSON.toJSONString(user, config);
单个字段 设置下划线转驼峰
@JSONField(name="user_name")