Use constant for produces attribute

Closes gh-14501
This commit is contained in:
yongsungjeon
2018-09-18 16:08:23 +09:00
committed by Stephane Nicoll
parent 36d22c8541
commit 11864f2bb6

View File

@@ -82,7 +82,7 @@ public class BasicErrorController extends AbstractErrorController {
return this.errorProperties.getPath();
}
@RequestMapping(produces = "text/html")
@RequestMapping(produces = MediaType.TEXT_HTML_VALUE)
public ModelAndView errorHtml(HttpServletRequest request,
HttpServletResponse response) {
HttpStatus status = getStatus(request);