Commit d02c15b4 by henry

添加日志处理

1 parent f4c5f097
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
## 1.6 system-manage 系统管理微服务(字典管理、菜单管理、用户及组织管理) ## 1.6 system-manage 系统管理微服务(字典管理、菜单管理、用户及组织管理)
## 1.7 arch-gateway ## 1.7 arch-gateway
## 1.8 arch-base 基础服务-包括工具类-及对象实体 ## 1.8 arch-base 基础服务-包括工具类-及对象实体
# <span style="color: red;">**************************************************************重要************************************************************</span> # <span style="color: red;">*************重要***********</span>
## vo(View Object):视图对象,用于展示层 ## vo(View Object):视图对象,用于展示层
## dto(Data Transfer Object):数据传输对象 ## dto(Data Transfer Object):数据传输对象
## pojo(Persistent Object):持久化对象 ## pojo(Persistent Object):持久化对象
......
...@@ -80,9 +80,7 @@ public class AutoLogConfigAspect { ...@@ -80,9 +80,7 @@ public class AutoLogConfigAspect {
HttpServletResponse response = requestAttributes.getResponse(); HttpServletResponse response = requestAttributes.getResponse();
MethodSignature signature = (MethodSignature) joinPoint.getSignature(); MethodSignature signature = (MethodSignature) joinPoint.getSignature();
ApiOperation operation = signature.getMethod().getAnnotation(ApiOperation.class); ApiOperation operation = signature.getMethod().getAnnotation(ApiOperation.class);
Method method = signature.getMethod();
Object[] args = joinPoint.getArgs(); Object[] args = joinPoint.getArgs();
Map<String, String[]> parameterMap = new HashMap<String, String[]>();
String requParam = ""; String requParam = "";
String requestMethod = request.getMethod(); String requestMethod = request.getMethod();
// 获取请求参数集合 // 获取请求参数集合
...@@ -135,8 +133,6 @@ public class AutoLogConfigAspect { ...@@ -135,8 +133,6 @@ public class AutoLogConfigAspect {
// 保存数据库 // 保存数据库
sysEventLog.setCreateTime(new Date()); sysEventLog.setCreateTime(new Date());
sysEventLog.setRequestTime(new Date()); sysEventLog.setRequestTime(new Date());
// System.out.println(sysEventLog);
sysEventLogService.save(sysEventLog); sysEventLogService.save(sysEventLog);
} catch (Exception exp) { } catch (Exception exp) {
// 记录本地异常日志 // 记录本地异常日志
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!