首页 > 技术文章 > map、bean互相转换

5588kjx 2019-01-29 18:06 原文

引入jar包:

commons-beanutils-1.9.2.jar

将bean转为map:

Map map =BeanUtils.describe(ec); 

 

推荐阅读