日志注解限制operUrl属性的长度

pull/248/MERGE
RuoYi 2 years ago
parent 62eec4df51
commit 5b6dc85b62

@ -76,7 +76,7 @@ public class LogAspect
// 请求的地址
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))
{

Loading…
Cancel
Save