Java Code Examples for com.ruoyi.common.json.JSON#marshal()
The following examples show how to use
com.ruoyi.common.json.JSON#marshal() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LogAspect.java From supplierShop with MIT License | 5 votes |
/** * 获取请求的参数,放到log中 * * @param operLog 操作日志 * @throws Exception 异常 */ private void setRequestValue(SysOperLog operLog) throws Exception { Map<String, String[]> map = ServletUtils.getRequest().getParameterMap(); String params = JSON.marshal(map); operLog.setOperParam(StringUtils.substring(params, 0, 2000)); }
Example 2
Source File: LogAspect.java From ruoyiplus with MIT License | 5 votes |
/** * 获取请求的参数,放到log中 * * @param operLog 操作日志 * @throws Exception 异常 */ private void setRequestValue(SysOperLog operLog) throws Exception { Map<String, String[]> map = ServletUtils.getRequest().getParameterMap(); String params = JSON.marshal(map); operLog.setOperParam(StringUtils.substring(params, 0, 255)); }
Example 3
Source File: LogUtils.java From supplierShop with MIT License | 4 votes |
protected static String getParams(HttpServletRequest request) throws Exception { Map<String, String[]> params = request.getParameterMap(); return JSON.marshal(params); }
Example 4
Source File: LogUtils.java From ruoyiplus with MIT License | 4 votes |
protected static String getParams(HttpServletRequest request) throws Exception { Map<String, String[]> params = request.getParameterMap(); return JSON.marshal(params); }
Example 5
Source File: LogUtils.java From RuoYi with Apache License 2.0 | 4 votes |
protected static String getParams(HttpServletRequest request) throws Exception { Map<String, String[]> params = request.getParameterMap(); return JSON.marshal(params); }
Example 6
Source File: LogAspect.java From RuoYi with Apache License 2.0 | 2 votes |
/** * 获取请求的参数,放到log中 * * @param operLog 操作日志 * @throws Exception 异常 */ private void setRequestValue(SysOperLog operLog) throws Exception { Map<String, String[]> map = ServletUtils.getRequest().getParameterMap(); String params = JSON.marshal(map); operLog.setOperParam(params); }