mirror of
https://github.com/Hello-hao/Tbed.git
synced 2024-04-21 12:32:10 +00:00
2019-7-21更新 增加腾讯COS
This commit is contained in:
@@ -18,18 +18,18 @@ class MainsiteErrorController implements ErrorController {
|
||||
//获取statusCode:401,404,500
|
||||
Integer statusCode = (Integer) request.getAttribute("javax.servlet.error.status_code");
|
||||
if(statusCode == 401){
|
||||
return "/401";
|
||||
return "401";
|
||||
}else if(statusCode == 404){
|
||||
return "/404";
|
||||
return "404";
|
||||
}else if(statusCode == 403){
|
||||
return "/403";
|
||||
return "403";
|
||||
}else{
|
||||
return "/500";
|
||||
return "500";
|
||||
}
|
||||
|
||||
}
|
||||
@Override
|
||||
public String getErrorPath() {
|
||||
return "/error";
|
||||
return "error";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user