toErrorPage(...) 수정

master
mjkhan21 11 months ago
parent bb55273e0d
commit 31f4f57695

@ -32,7 +32,7 @@ public class ExceptionController extends AbstractController {
Object disp = hreq.getRequestDispatcher("error/errorPage"); Object disp = hreq.getRequestDispatcher("error/errorPage");
String viewName = disp != null ? "error/errorPage" : "jsonView" ; String viewName = disp != null ? "error/errorPage" : "jsonView" ;
return new ModelAndView(viewName) return new ModelAndView(viewName)
.addObject("json", ajaxRequest() || jsonResponse()) .addObject("json", "jsonView".equals(viewName) || ajaxRequest() || jsonResponse())
.addObject("path", getAction(hreq)) .addObject("path", getAction(hreq))
.addObject("failed", true) .addObject("failed", true)
.addObject("status", status) .addObject("status", status)

Loading…
Cancel
Save