|
@@ -57,9 +57,9 @@ public class ApiControllerAspect {
|
|
|
Object[] args = joinPoint.getArgs();
|
|
|
String[] paramsName = msig.getParameterNames();
|
|
|
HttpServletRequest request = ServletUtil.getRequest();
|
|
|
- log.info("============request path========:{}", request.getServletPath());
|
|
|
- log.info("============class name=============:{}", className);
|
|
|
- log.info("============invoke method===========:{}", methodName);
|
|
|
+ log.info("============请求地址========:{}", request.getServletPath());
|
|
|
+ log.info("============类=============:{}", className);
|
|
|
+ log.info("============方法===========:{}", methodName);
|
|
|
if (Objects.nonNull(args) && args.length > 0) {
|
|
|
for (int i = 0; i < args.length; i++) {
|
|
|
if (Objects.nonNull(args[i]) && (args[i] instanceof HttpServletRequest || args[i] instanceof HttpServletResponse || args[i] instanceof CommonsMultipartFile || args[i] instanceof MultipartFile || args[i] instanceof BeanPropertyBindingResult)) {
|
|
@@ -75,7 +75,7 @@ public class ApiControllerAspect {
|
|
|
//log.info("============time===========:{}", ServletUtil.getRequestTimeForTime());
|
|
|
Object proceed = joinPoint.proceed();
|
|
|
long end = System.currentTimeMillis();
|
|
|
- log.info("============api time cost============:{} seconds", (end - start) / 1000);
|
|
|
+ log.info("============耗时============:{}秒", (end - start) / 1000);
|
|
|
return proceed;
|
|
|
} catch (Exception e) {
|
|
|
log.error("Api exception", e);
|