2019-7-21更新 增加腾讯COS

This commit is contained in:
Hellohao
2019-07-21 21:56:42 +08:00
parent 291c3964dc
commit 92c630328a
21 changed files with 1041 additions and 168 deletions
@@ -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";
}
}