From c2e7060697a04371a36301cfe1b37f14345800a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?= <15040126243@163.com> Date: Tue, 13 Sep 2022 15:02:34 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E6=8F=92?= =?UTF-8?q?=E5=85=A5=20SysOperLog=20=E6=97=B6,=20=E9=99=90=E5=88=B6=20oper?= =?UTF-8?q?Url=20=E5=B1=9E=E6=80=A7=E7=9A=84=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ruoyi/common/log/aspect/LogAspect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/aspect/LogAspect.java b/ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/aspect/LogAspect.java index a75d4d8d..d29bb623 100644 --- a/ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/aspect/LogAspect.java +++ b/ruoyi-common/ruoyi-common-log/src/main/java/com/ruoyi/common/log/aspect/LogAspect.java @@ -73,7 +73,7 @@ public class LogAspect { operLog.setStatus(BusinessStatus.SUCCESS.ordinal()); // 请求的地址 operLog.setOperIp(ServletUtils.getClientIP()); - operLog.setOperUrl(ServletUtils.getRequest().getRequestURI()); + operLog.setOperUrl(StringUtils.substring(ServletUtils.getRequest().getRequestURI(), 0, 255)); String username = LoginHelper.getUsername(); if (StringUtils.isNotBlank(username)) { operLog.setOperName(username);