修复漏洞(对报错信息进行自定义,避免泄露系统敏感信息)

This commit is contained in:
sh
2026-04-28 20:21:00 +08:00
parent 3c273ea5b7
commit 93a020bb63

View File

@@ -2,7 +2,6 @@ package com.ruoyi.framework.web.exception;
import javax.servlet.http.HttpServletRequest;
import com.highgo.jdbc.util.PSQLException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.access.AccessDeniedException;
@@ -151,12 +150,4 @@ public class GlobalExceptionHandler
{
return AjaxResult.error("演示模式,不允许操作");
}
/**
* 拦截瀚高数据库 字符过长异常
*/
@ExceptionHandler(PSQLException.class)
public AjaxResult handleHighGoException(PSQLException e) {
return AjaxResult.error("输入内容过长,请检查后重试");
}
}