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

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

 

posted @ 2021-08-12 18:05  小蚊子大人KN  阅读(47)  评论(0编辑  收藏  举报