全局配置逻辑实现
This commit is contained in:
1 parent
da4af93a1e
commit
cf8220edbd
13 files changed
+361
-35
No files matched your search
@@ -92,8 +92,11 @@ public class LogAspect
|
||||
// 请求的地址
|
||||
String ip = IpUtils.getIpAddr(ServletUtils.getRequest());
|
||||
operLog.setOperIp(ip);
|
||||
// 返回参数
|
||||
operLog.setJsonResult(JSON.toJSONString(jsonResult));
|
||||
// 返回一次性凭据或敏感数据的接口可通过注解显式禁止保存响应体。
|
||||
if (controllerLog.isSaveResponseData())
|
||||
{
|
||||
operLog.setJsonResult(JSON.toJSONString(jsonResult));
|
||||
}
|
||||
|
||||
operLog.setOperUrl(ServletUtils.getRequest().getRequestURI());
|
||||
if (loginUser != null)
|
||||
|
||||
Reference in new issue
Block a user