Issue https://github.com/spring-projects/spring-framework/issues/33545
Comment From: jhoeller
Note that I've prepared a fix for #33545 locally already, just not committed it to the 6.1.x branch yet where it will get forward-merged to the main branch. This will get pushed to the repo later today.
@ngocnhan-tran1996 please pay attention to assignments on issues, otherwise an unrequested PR is effectively duplicated work. Thanks for your efforts, in any case!
In terms of exception message, I'm actually using the original exception message as-is without extra words or quoting of the value since the given value is contained there in the DateTimeException
anyway. Also, we're exclusively catching DateTimeException
there, not general Exception
.