如何动态实现String 转成int int转成String

SysDictDataDTO data = sysDictDataService.get(id);
//int
PasswordDTO<Integer> passwordDTO= new PasswordDTO<>();
passwordDTO.setDictValue(Integer.parseInt(data.getDictValue()));

小蚊子大人
原文地址:https://www.cnblogs.com/ywsheng/p/15134070.html