We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.7.1
JeecgBootExceptionHandler.java 类中未看到有对@Valid() 注解的校验异常进行异常捕获处理,导致前端异常把后端java的包名等信息展示出来。 建议在此类中增加如下方法
@ExceptionHandler(MethodArgumentNotValidException.class) public Result<?> handleValidationExceptions(MethodArgumentNotValidException exception) { addSysLog(exception); return Result.error("校验失败!" + exception.getBindingResult().getAllErrors().stream().map(ObjectError::getDefaultMessage).collect(Collectors.joining(","))); }
The text was updated successfully, but these errors were encountered:
cr
Sorry, something went wrong.
No branches or pull requests
版本号:
3.7.1
问题描述:
JeecgBootExceptionHandler.java 类中未看到有对@Valid() 注解的校验异常进行异常捕获处理,导致前端异常把后端java的包名等信息展示出来。
建议在此类中增加如下方法
错误截图:
友情提示:
The text was updated successfully, but these errors were encountered: