I know this is an old post but I was also facing the same problem recently and found a solution and thought maybe could be helpful to others. The problem appears to stem from an identified bug (with spring boot ?) and was fixed. I changed over from v3.1.5 to v3.4.1 (per below) and that seems to have fixed it.
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.4.1</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>