借助于Arrays.asList实现示例代码如下String str = "a,b,c"; List<String> result = Arrays.asList(str.split(","));
借助于apache commens util包的BeanUtils示例代码如下Bean bean = new Bean()Map map = BeanUtils.describe(bean);
核心request.getParameterMap()的用法Map<String, String> params = new HashMap<>(); Map<String,String[]> requestParams = request.getParameterMap(); requestParams.forEach((key, value) -> { params.put(key,value[0]); });