Fix BasicErrorController include parameter parsing

This commit fixes an error in BasicErrorController where the wrong
property was referenced for binding error inclusion.

See gh-21702
This commit is contained in:
Aurdo
2020-06-04 22:01:33 +03:00
committed by Scott Frederick
parent b71bab2817
commit e2e52a11cc

View File

@@ -172,7 +172,7 @@ public class BasicErrorController extends AbstractErrorController {
* @return if the errors attribute should be included
*/
protected boolean isIncludeBindingErrors(HttpServletRequest request, MediaType produces) {
switch (getErrorProperties().getIncludeMessage()) {
switch (getErrorProperties().getIncludeBindingErrors()) {
case ALWAYS:
return true;
case ON_PARAM: