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
2.1.2
全局拦截异常错误的提醒文字,其它版本一样的问题
友情提示: 未按格式要求发帖,会直接删掉。
The text was updated successfully, but these errors were encountered:
个人改法 @ExceptionHandler(HttpRequestMethodNotSupportedException.class) public Result<?> HttpRequestMethodNotSupportedException(HttpRequestMethodNotSupportedException e){ StringBuffer sb = new StringBuffer(); sb.append("不支持"); sb.append(e.getMethod()); sb.append("请求方法,"); sb.append("支持以下"); String [] methods = e.getSupportedMethods(); if(methods!=null){ for(String str:methods){ sb.append(str); sb.append("、"); } } log.error(sb.toString(), e); /return Result.error("没有权限,请联系管理员授权");/ return Result.error(405,sb.toString()); }
Sorry, something went wrong.
No branches or pull requests
版本号:
2.1.2
问题描述:
全局拦截异常错误的提醒文字,其它版本一样的问题
截图&代码:
友情提示: 未按格式要求发帖,会直接删掉。
The text was updated successfully, but these errors were encountered: