tomatoes

天行健,君子以自强不息;地势坤,君子以厚德载物

导航

从底层获取接口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编辑  收藏  举报