操作日志记录新增请求方式

This commit is contained in:
RuoYi
2019-08-22 21:54:35 +08:00
parent e7050f5a38
commit 478520572c
8 changed files with 47 additions and 23 deletions

View File

@ -104,6 +104,8 @@ public class LogAspect
String className = joinPoint.getTarget().getClass().getName();
String methodName = joinPoint.getSignature().getName();
operLog.setMethod(className + "." + methodName + "()");
// 设置请求方式
operLog.setRequestMethod(ServletUtils.getRequest().getMethod());
// 处理设置注解上的参数
getControllerMethodDescription(controllerLog, operLog);
// 保存数据库