<dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.9.3</version> </dependency>
Map Mlist = redisUtil.hashGetAllCommon(jqbh); try { PropertyUtils.copyProperties(jqztxxcx,Mlist ); } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { e.printStackTrace(); }
后续:map取值后直接转对象
List<TJqZdshjHdzt> list = JSONArray.parseArray(params.get("hdsetting").toString(),
TJqZdshjHdzt.class);