Support new exception message wording since Jackson 2.9

The wording changed from "Can not find" to "Cannot find" via PR #1682

Issues: SPR-16947
This commit is contained in:
Mark Chesney
2018-06-17 13:27:20 +02:00
committed by Juergen Hoeller
parent bea0e399b8
commit e4666c17ec
@@ -190,7 +190,7 @@ public abstract class AbstractJackson2HttpMessageConverter extends AbstractGener
}
boolean debugLevel = (cause instanceof JsonMappingException &&
cause.getMessage().startsWith("Can not find"));
(cause.getMessage().startsWith("Can not find") || cause.getMessage().startsWith("Cannot find")));
if (debugLevel ? logger.isDebugEnabled() : logger.isWarnEnabled()) {
String msg = "Failed to evaluate Jackson " + (type instanceof JavaType ? "de" : "") +