从底层获取接口url携带的数据
从底层获取接口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");
posted on 2019-02-18 16:20 zongJianKun 阅读(319) 评论(0) 编辑 收藏 举报