Browse Source

Merge pull request #14501 from yongsungjeon:develop

* pr/14501:
  Use constant for produces attribute
pull/14505/merge
Stephane Nicoll 7 years ago
parent
commit
b4146060a0
  1. 2
      spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/error/BasicErrorController.java

2
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/error/BasicErrorController.java

@ -82,7 +82,7 @@ public class BasicErrorController extends AbstractErrorController { @@ -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);

Loading…
Cancel
Save