Ver Fonte

修改exam模块接口切面日志输出

luoshi há 4 anos atrás
pai
commit
f9b419a8d8

+ 1 - 1
themis-exam/src/main/java/com/qmth/themis/exam/aspect/ApiControllerAspect.java

@@ -54,7 +54,7 @@ public class ApiControllerAspect {
             Object[] args = joinPoint.getArgs();
             String[] paramsName = msig.getParameterNames();
             HttpServletRequest request = ServletUtil.getRequest();
-            log.info("============请求地址========:{}", request.getRequestURL());
+            log.info("============请求地址========:{}", request.getServletPath());
             log.info("============类=============:{}", className);
             log.info("============方法===========:{}", methodName);
             if (Objects.nonNull(args) && args.length > 0) {