修复漏洞(对报错信息进行自定义,避免泄露系统敏感信息)
This commit is contained in:
@@ -2,7 +2,6 @@ package com.ruoyi.framework.web.exception;
|
|||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
import com.highgo.jdbc.util.PSQLException;
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.security.access.AccessDeniedException;
|
import org.springframework.security.access.AccessDeniedException;
|
||||||
@@ -151,12 +150,4 @@ public class GlobalExceptionHandler
|
|||||||
{
|
{
|
||||||
return AjaxResult.error("演示模式,不允许操作");
|
return AjaxResult.error("演示模式,不允许操作");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 拦截瀚高数据库 字符过长异常
|
|
||||||
*/
|
|
||||||
@ExceptionHandler(PSQLException.class)
|
|
||||||
public AjaxResult handleHighGoException(PSQLException e) {
|
|
||||||
return AjaxResult.error("输入内容过长,请检查后重试");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user