1、导入包为import com.alibaba.fastjson.JSONObject;
2、json字符串转为对象
String strategyContent = detailDTO.getStrategyContent();
LocalPwdDTO localPwdDTO = JSONObject.parseObject(strategyContent, LocalPwdDTO.class);
1、导入包为import com.alibaba.fastjson.JSONObject;
2、json字符串转为对象
String strategyContent = detailDTO.getStrategyContent();
LocalPwdDTO localPwdDTO = JSONObject.parseObject(strategyContent, LocalPwdDTO.class);