小任班长的博客 - java
type: channel
link: https://cnxiaocheng.top/tag/java/
items: 逗号分割字符串转list 字符串转List
items: javabean转map的方法 对象转map
items: request获取所有参数 request获取参数转map

逗号分割字符串转list 字符串转List
type: item
date: 2023-03-20T09:00:00+08:00
description: 借助于Arrays.asList实现示例代码如下String str = "a,b,c"; List<String> result = Arrays.asList(str.split(","));

javabean转map的方法 对象转map
type: item
date: 2023-03-19T09:00:00+08:00
description: 借助于apache commens util包的BeanUtils示例代码如下Bean bean = new Bean()Map map = BeanUtils.describe(bean);

request获取所有参数 request获取参数转map
type: item
date: 2023-02-28T09:00:00+08:00
description: 核心request.getParameterMap()的用法Map<String, String> params = new HashMap<>(); Map<String,String[]> requestParams = request.getParameterMap(); requestParams.forEach((key, value) -> { params.put(key,value[0]); });