See https://github.com/spring-projects/spring-boot/pull/38356#issuecomment-1897238640 and subsequent comments.