Skip to content

Commit

Permalink
日志注解限制operUrl属性的长度
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzongzhuan committed Sep 9, 2022
1 parent 62eec4d commit 5b6dc85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void handleLog(final JoinPoint joinPoint, Log controllerLog, final Exc
// 请求的地址
String ip = IpUtils.getIpAddr(ServletUtils.getRequest());
operLog.setOperIp(ip);
operLog.setOperUrl(ServletUtils.getRequest().getRequestURI());
operLog.setOperUrl(StringUtils.substring(ServletUtils.getRequest().getRequestURI(), 0, 255));
String username = SecurityUtils.getUsername();
if (StringUtils.isNotBlank(username))
{
Expand Down

0 comments on commit 5b6dc85

Please sign in to comment.