从底层获取接口url携带的数据

时间:2023-09-06 11:58:07
从底层获取接口url携带的数据
//实例化HttpServletRequest
HttpServletRequest request = ServletHolderFilter.getContext().getRequest();
Map<String, Object> requestParams = null;
String requestContent = null;
requestContent = IOUtils.toString(request.getInputStream(), "UTF-8");
requestParams = JSONUtilsEx.deserialize(requestContent, Map.class);
requestParams.get("key");