FASTJSON dto转string 驼峰转下划线

SerializeConfig serializeConfig=new SerializeConfig();
serializeConfig.propertyNamingStrategy= PropertyNamingStrategy.SnakeCase;
String s = JSONObject.toJSONString(addDTO, serializeConfig);

 

posted @ 2022-09-16 17:56  浅笑19  阅读(1167)  评论(0编辑  收藏  举报