Map中的Object转成javabean
1、引用阿里的fastjson
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.58</version>
</dependency>
2、执行转换
CountManage countManage=JSON.parseObject(JSON.toJSONString(params.get("countManage")), new TypeReference<CountManage>(){});
以上内容原创来自每特学院,每特学员学习并整理!
给学院打波广告:
http://www.mayikt.com/
浙公网安备 33010602011771号