feat: HandlerMethodArgumentResolverでバインド失敗時のスタックトレースを両方出力するように

This commit is contained in:
usbharu 2024-02-13 17:36:18 +09:00
parent 423b7f03e9
commit ce979a8dba
1 changed files with 3 additions and 2 deletions

View File

@ -40,11 +40,12 @@ class JsonOrFormModelMethodProcessor(
return try {
modelAttributeMethodProcessor.resolveArgument(parameter, mavContainer, webRequest, binderFactory)
} catch (ignore: Exception) {
} catch (exception: Exception) {
try {
requestResponseBodyMethodProcessor.resolveArgument(parameter, mavContainer, webRequest, binderFactory)
} catch (e: Exception) {
logger.warn("Failed to bind request", e)
logger.warn("Failed to bind request (1)", exception)
logger.warn("Failed to bind request (2)", e)
}
}
}