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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user