Yes, the issue appears to be a bug introduced in latest spring 3.4.1 released on 19th Dec 2024. Two possible workarounds are,
(Ref: https://www.udemy.com/course/spring-hibernate-tutorial/learn/lecture/36836512#questions/22798063)