关于s-HR中url请求中参数获取问题

二开在url中直接追加参数&xxx=xxx01,在后端通过
String xxx = request.getParameter("xxx");发现无法获取到参数值,此时可以进行兼容处理下,从request的attribute获取:
Map customParams = (Map) request.getAttribute(Constants.CUSTOM_PARAMS);
String xxx = (String)customParams.get("xxx");从请求中获取进行转换
String custom_params = request.getParameter(Constants.CUSTOM_PARAMS);
if (!StringUtils.isEmpty(custom_params)) {
Map customParams = JSONUtils.conv关于s-HR中url请求中参数获取问题
二开在url中直接追加参数&xxx=xxx01,在后端通过String xxx = request.getParameter("xxx");发现无法获取到参数值,此时可以进行兼容处理下...
点击下载文档文档为doc格式
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
上一篇
已经是第一篇
下一篇



