java复制对象到某一实体类

ObjectMapper objectMapper = new ObjectMapper();
Object shot = JSONObject.parse(echelonSnapshot);
StockEchelonProductAuthConf stockEchelonProductAuthConf = objectMapper.convertValue(shot, StockEchelonProductAuthConf.class);

 

posted @ 2022-12-05 13:35  周穆浩  阅读(215)  评论(0)    收藏  举报